Make lspconfig mappings configurable.
This commit is contained in:
parent
1cd5150b70
commit
31e551af30
3 changed files with 46 additions and 25 deletions
|
|
@ -190,6 +190,27 @@ M.mappings.plugins = {
|
|||
esc_insertmode = { "jk" }, -- multiple mappings allowed
|
||||
},
|
||||
|
||||
lspconfig = {
|
||||
declaration = "gD",
|
||||
definition = "gd",
|
||||
hover = "K",
|
||||
implementation = "gi",
|
||||
signature_help = "gk",
|
||||
add_workspace_folder = "<leader>wa",
|
||||
remove_workspace_folder = "<leader>wr",
|
||||
list_workspace_folders = "<leader>wl",
|
||||
type_definition = "<leader>D",
|
||||
rename = "<leader>rn",
|
||||
code_action = "<leader>ca",
|
||||
references = "gr",
|
||||
show_line_diagnostics = "ge",
|
||||
goto_prev = "[d",
|
||||
goto_next = "]d",
|
||||
set_loclist = "<leader>q",
|
||||
formatting = "<leader>fm",
|
||||
range_code_action = "<leader>ca",
|
||||
},
|
||||
|
||||
nvimtree = {
|
||||
toggle = "<C-n>",
|
||||
focus = "<leader>e",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue