From 3a9a804052ba9576c38cf84890a6dc6ca40c3163 Mon Sep 17 00:00:00 2001 From: kyoh86 Date: Sat, 11 Feb 2023 11:27:33 +0900 Subject: [PATCH] fix executable check --- lua/lazy/util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }