mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 19:34:15 +00:00
fix executable check
This commit is contained in:
parent
d13fe93535
commit
3a9a804052
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue