diff --git a/lua/lazy/util.lua b/lua/lazy/util.lua index 23e32b5..743a679 100644 --- a/lua/lazy/util.lua +++ b/lua/lazy/util.lua @@ -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 }