diff options
author | Uthman Mohamed <83053931+uthmanmoh@users.noreply.github.com> | 2024-10-18 05:22:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-18 02:22:15 -0700 |
commit | f4b620c4e6430ea8cbc5632d6853b24da09d7dfc (patch) | |
tree | 5878a1f1b3e2675c222099cb2bb4bbc4307e5880 /runtime/lua/vim | |
parent | 564173e5568ccf11bf6554680922d3716fb6862b (diff) | |
download | rneovim-f4b620c4e6430ea8cbc5632d6853b24da09d7dfc.tar.gz rneovim-f4b620c4e6430ea8cbc5632d6853b24da09d7dfc.tar.bz2 rneovim-f4b620c4e6430ea8cbc5632d6853b24da09d7dfc.zip |
feat(vim.ui.open): support lemonade #30845
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/ui.lua | 4 |
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 |