mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-27 19:24:13 +00:00
fix(util): executable checks for Util.open
(#528)
This commit is contained in:
parent
b5eb07e728
commit
4917222c7e
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