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:
Luca Saccarola
2025-02-20 13:10:13 +01:00
committed by GitHub
parent b0bbe25c48
commit 4913b7895c
3 changed files with 14 additions and 145 deletions

View File

@@ -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