feat: use "wslview" instead of "xsl-open" if it exsits (#509)

This commit is contained in:
kyoh86 2023-02-08 15:32:29 +09:00 committed by GitHub
parent 4272d2100a
commit 2451ea4e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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