mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +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
|
||||
cmd = { "open", uri }
|
||||
else
|
||||
if vim.fn.executable("xdg-open") then
|
||||
if vim.fn.executable("xdg-open") == 1 then
|
||||
cmd = { "xdg-open", uri }
|
||||
elseif vim.fn.executable("wslview") then
|
||||
elseif vim.fn.executable("wslview") == 1 then
|
||||
cmd = { "wslview", uri }
|
||||
else
|
||||
cmd = { "open", uri }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue