fix: actions.open_external uses explorer.exe in WSL (#273)
This commit is contained in:
parent
bcfe7d1ec5
commit
6953c2c17d
1 changed files with 2 additions and 2 deletions
|
|
@ -184,8 +184,8 @@ local function get_open_cmd(path)
|
||||||
else
|
else
|
||||||
return nil, "rundll32 not found"
|
return nil, "rundll32 not found"
|
||||||
end
|
end
|
||||||
elseif vim.fn.executable("wslview") == 1 then
|
elseif vim.fn.executable("explorer.exe") == 1 then
|
||||||
return { "wslview", path }
|
return { "explorer.exe", path }
|
||||||
elseif vim.fn.executable("xdg-open") == 1 then
|
elseif vim.fn.executable("xdg-open") == 1 then
|
||||||
return { "xdg-open", path }
|
return { "xdg-open", path }
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue