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
|
||||
if vim.fn.executable("xdg-open") then
|
||||
cmd = { "xdg-open", uri }
|
||||
elseif vim.fn.executable("wslview") then
|
||||
cmd = { "wslview", uri }
|
||||
else
|
||||
cmd = { "open", uri }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue