mirror of https://github.com/folke/lazy.nvim.git
fix(util): executable checks for `Util.open` (#528)
This commit is contained in:
parent
b5eb07e728
commit
4917222c7e
|
@ -23,9 +23,9 @@ function M.open(uri)
|
||||||
elseif vim.fn.has("macunix") == 1 then
|
elseif vim.fn.has("macunix") == 1 then
|
||||||
cmd = { "open", uri }
|
cmd = { "open", uri }
|
||||||
else
|
else
|
||||||
if vim.fn.executable("xdg-open") then
|
if vim.fn.executable("xdg-open") == 1 then
|
||||||
cmd = { "xdg-open", uri }
|
cmd = { "xdg-open", uri }
|
||||||
elseif vim.fn.executable("wslview") then
|
elseif vim.fn.executable("wslview") == 1 then
|
||||||
cmd = { "wslview", uri }
|
cmd = { "wslview", uri }
|
||||||
else
|
else
|
||||||
cmd = { "open", uri }
|
cmd = { "open", uri }
|
||||||
|
|
Loading…
Reference in New Issue