mirror of
https://github.com/neovim/neovim.git
synced 2026-04-04 14:49:31 +00:00
vim-patch:c729d6d: runtime: decouple Open and Launch commands and gx mapping from netrw (#32506)
closes: vim/vim#16494
fixes: #vim/vim#16486
c729d6d154
This commit is contained in:
@@ -24,6 +24,14 @@ do
|
||||
vim.api.nvim_create_user_command('EditQuery', function(cmd)
|
||||
vim.treesitter.query.edit(cmd.fargs[1])
|
||||
end, { desc = 'Edit treesitter query', nargs = '?' })
|
||||
|
||||
vim.api.nvim_create_user_command('Open', function(cmd)
|
||||
vim.ui.open(cmd.fargs[1])
|
||||
end, {
|
||||
desc = 'Open file with system default handler. See :help vim.ui.open()',
|
||||
nargs = 1,
|
||||
complete = 'file',
|
||||
})
|
||||
end
|
||||
|
||||
--- Default mappings
|
||||
|
||||
Reference in New Issue
Block a user