feat(#2430): use vim.ui.open as default system_open, for neovim 0.10+ (#2912)

* feat(#2430): use vim.ui.open as default system_open, for neovim 0.10+

* feat(#2430): use vim.ui.open as default system_open, for neovim 0.10+
This commit is contained in:
Alexander Courtis
2024-09-14 15:15:44 +10:00
committed by GitHub
parent a4dd5ad5c8
commit 03f737e574
2 changed files with 40 additions and 12 deletions

View File

@@ -1198,11 +1198,18 @@ Takes the `BufEnter` event as an argument. see |autocmd-events|
Open a file or directory in your preferred application.
|vim.ui.open| was introduced in neovim 0.10 and is the default.
Once nvim-tree minimum neovim version is updated to 0.10, these options will
no longer be necessary and will be removed.
*nvim-tree.system_open.cmd*
The open command itself.
Type: `string`, Default: `""`
Leave empty for OS specific default:
neovim >= 0.10 defaults to |vim.ui.open|
neovim < 0.10 defaults to:
UNIX: `"xdg-open"`
macOS: `"open"`
Windows: `"cmd"`