mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 19:34:15 +00:00
use "wslview" instead of "xsl-open" if it exsits
This commit is contained in:
parent
4272d2100a
commit
79f07c597d
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ function M.open(uri)
|
||||||
else
|
else
|
||||||
if vim.fn.executable("xdg-open") then
|
if vim.fn.executable("xdg-open") then
|
||||||
cmd = { "xdg-open", uri }
|
cmd = { "xdg-open", uri }
|
||||||
|
elseif vim.fn.executable("wslview") then
|
||||||
|
cmd = { "wslview", uri }
|
||||||
else
|
else
|
||||||
cmd = { "open", uri }
|
cmd = { "open", uri }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue