Make lspconfig mappings configurable.

This commit is contained in:
Danilo Horta 2021-12-18 22:39:59 +00:00 committed by siduck
parent 1cd5150b70
commit 31e551af30
3 changed files with 46 additions and 25 deletions

View file

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