feat(vim.ui.open): support lemonade #30845

This commit is contained in:
Uthman Mohamed
2024-10-18 05:22:15 -04:00
committed by GitHub
parent 564173e556
commit f4b620c4e6
3 changed files with 8 additions and 2 deletions

View File

@@ -159,8 +159,10 @@ function M.open(path, opt)
cmd = { 'wslview', path }
elseif vim.fn.executable('explorer.exe') == 1 then
cmd = { 'explorer.exe', path }
elseif vim.fn.executable('lemonade') == 1 then
cmd = { 'lemonade', 'open', path }
else
return nil, 'vim.ui.open: no handler found (tried: wslview, explorer.exe, xdg-open)'
return nil, 'vim.ui.open: no handler found (tried: wslview, explorer.exe, xdg-open, lemonade)'
end
return vim.system(cmd, job_opt), nil