mirror of
https://github.com/neovim/neovim.git
synced 2026-08-30 02:51:48 +00:00
feat(defaults): map "grx" to vim.lsp.codelens.run() #37689
Problem Unlike inlay hints, code lenses are closely related to running commands; a significant number of code lenses are used to execute a command (such as running tests). Therefore, it is necessary to provide a default mapping for them. Solution Add a new default mapping "grx" (mnemonic: "eXecute", like "gx").
This commit is contained in:
@@ -209,6 +209,10 @@ do
|
||||
vim.lsp.buf.code_action()
|
||||
end, { desc = 'vim.lsp.buf.code_action()' })
|
||||
|
||||
vim.keymap.set('n', 'grx', function()
|
||||
vim.lsp.codelens.run()
|
||||
end, { desc = 'vim.lsp.codelens.run()' })
|
||||
|
||||
vim.keymap.set('n', 'grr', function()
|
||||
vim.lsp.buf.references()
|
||||
end, { desc = 'vim.lsp.buf.references()' })
|
||||
|
||||
Reference in New Issue
Block a user