aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/ui.lua
diff options
context:
space:
mode:
authorUthman Mohamed <83053931+uthmanmoh@users.noreply.github.com>2024-10-18 05:22:15 -0400
committerGitHub <noreply@github.com>2024-10-18 02:22:15 -0700
commitf4b620c4e6430ea8cbc5632d6853b24da09d7dfc (patch)
tree5878a1f1b3e2675c222099cb2bb4bbc4307e5880 /runtime/lua/vim/ui.lua
parent564173e5568ccf11bf6554680922d3716fb6862b (diff)
downloadrneovim-f4b620c4e6430ea8cbc5632d6853b24da09d7dfc.tar.gz
rneovim-f4b620c4e6430ea8cbc5632d6853b24da09d7dfc.tar.bz2
rneovim-f4b620c4e6430ea8cbc5632d6853b24da09d7dfc.zip
feat(vim.ui.open): support lemonade #30845
Diffstat (limited to 'runtime/lua/vim/ui.lua')
-rw-r--r--runtime/lua/vim/ui.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/ui.lua b/runtime/lua/vim/ui.lua
index c0f03ceadc..f66b34ac44 100644
--- a/runtime/lua/vim/ui.lua
+++ b/runtime/lua/vim/ui.lua
@@ -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