mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
feat: use "wslview" instead of "xsl-open" if it exsits (#509)
This commit is contained in:
parent
4272d2100a
commit
2451ea4e65
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ function M.open(uri)
|
||||||
else
|
else
|
||||||
if vim.fn.executable("xdg-open") then
|
if vim.fn.executable("xdg-open") then
|
||||||
cmd = { "xdg-open", uri }
|
cmd = { "xdg-open", uri }
|
||||||
|
elseif vim.fn.executable("wslview") then
|
||||||
|
cmd = { "wslview", uri }
|
||||||
else
|
else
|
||||||
cmd = { "open", uri }
|
cmd = { "open", uri }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue