mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
feat(lsp): add more LSP defaults (#28500)
- crn for rename - crr for code actions - gr for references - <C-S> (in Insert mode) for signature help
This commit is contained in:
@@ -348,7 +348,7 @@ function lsp._set_defaults(client, bufnr)
|
||||
and is_empty_or_default(bufnr, 'keywordprg')
|
||||
and vim.fn.maparg('K', 'n', false, false) == ''
|
||||
then
|
||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, { buffer = bufnr })
|
||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, { buffer = bufnr, desc = 'vim.lsp.buf.hover()' })
|
||||
end
|
||||
end)
|
||||
if client.supports_method(ms.textDocument_diagnostic) then
|
||||
|
||||
Reference in New Issue
Block a user