fix: actions.open_external uses explorer.exe in WSL (#273)

This commit is contained in:
Steven Arcangeli 2024-02-20 17:30:51 -08:00
parent bcfe7d1ec5
commit 6953c2c17d

View file

@ -184,8 +184,8 @@ local function get_open_cmd(path)
else
return nil, "rundll32 not found"
end
elseif vim.fn.executable("wslview") == 1 then
return { "wslview", path }
elseif vim.fn.executable("explorer.exe") == 1 then
return { "explorer.exe", path }
elseif vim.fn.executable("xdg-open") == 1 then
return { "xdg-open", path }
else