From 2451ea4e655bc60ef639ad284e69c6fca15da352 Mon Sep 17 00:00:00 2001 From: kyoh86 Date: Wed, 8 Feb 2023 15:32:29 +0900 Subject: [PATCH] feat: use "wslview" instead of "xsl-open" if it exsits (#509) --- lua/lazy/util.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lazy/util.lua b/lua/lazy/util.lua index 456ad83..23e32b5 100644 --- a/lua/lazy/util.lua +++ b/lua/lazy/util.lua @@ -25,6 +25,8 @@ function M.open(uri) else if vim.fn.executable("xdg-open") then cmd = { "xdg-open", uri } + elseif vim.fn.executable("wslview") then + cmd = { "wslview", uri } else cmd = { "open", uri } end