mirror of https://github.com/folke/lazy.nvim.git
feat: use "wslview" instead of "xsl-open" if it exsits (#509)
This commit is contained in:
parent
4272d2100a
commit
2451ea4e65
|
@ -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…
Reference in New Issue