From 6fd747b4293472ac166f1139077bcbf023767fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sun, 31 Jul 2022 10:09:27 +0200 Subject: [PATCH] Added shortcut for LSP code actions --- bundles-init/vim-lsp.cfg.vim | 7 ++++--- bundles-init/vim-which-key.cfg.vim | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bundles-init/vim-lsp.cfg.vim b/bundles-init/vim-lsp.cfg.vim index 79c937a..df99b13 100644 --- a/bundles-init/vim-lsp.cfg.vim +++ b/bundles-init/vim-lsp.cfg.vim @@ -9,12 +9,13 @@ let g:lsp_signs_error = {'text': '✗'} let g:lsp_signs_warning = {'text': '‼'} " Keyboard shortcuts +noremap lR :LspRename +noremap lS :LspWorkspaceSymbol +noremap la :LspCodeAction noremap ld :LspDocumentDiagnostics noremap lf :LspDocumentFormat -noremap lgd :LspDefinition noremap lgD :LspDeclaration +noremap lgd :LspDefinition noremap li :LspHover noremap lr :LspReferences -noremap lR :LspRename noremap ls :LspDocumentSymbol -noremap lS :LspWorkspaceSymbol diff --git a/bundles-init/vim-which-key.cfg.vim b/bundles-init/vim-which-key.cfg.vim index bae906c..73ab423 100644 --- a/bundles-init/vim-which-key.cfg.vim +++ b/bundles-init/vim-which-key.cfg.vim @@ -56,6 +56,7 @@ let g:which_key_map.h.v = 'vim-help' " Language helpers let g:which_key_map.l = { 'name' : '+language' } +let g:which_key_map.l.a = 'actions' let g:which_key_map.l.d = 'diagnostics' let g:which_key_map.l.f = 'format' let g:which_key_map.l.g = { 'name' : '+goto' }