Added shortcut for LSP code actions

This commit is contained in:
Emmanuel BENOîT 2022-07-31 10:09:27 +02:00
parent 6cfc625a14
commit 6fd747b429
2 changed files with 5 additions and 3 deletions

View file

@ -9,12 +9,13 @@ let g:lsp_signs_error = {'text': '✗'}
let g:lsp_signs_warning = {'text': '‼'} let g:lsp_signs_warning = {'text': '‼'}
" Keyboard shortcuts " Keyboard shortcuts
noremap <Leader>lR :LspRename<cr>
noremap <Leader>lS :LspWorkspaceSymbol<cr>
noremap <Leader>la :LspCodeAction<cr>
noremap <Leader>ld :LspDocumentDiagnostics<cr> noremap <Leader>ld :LspDocumentDiagnostics<cr>
noremap <Leader>lf :LspDocumentFormat<cr> noremap <Leader>lf :LspDocumentFormat<cr>
noremap <Leader>lgd :LspDefinition<cr>
noremap <Leader>lgD :LspDeclaration<cr> noremap <Leader>lgD :LspDeclaration<cr>
noremap <Leader>lgd :LspDefinition<cr>
noremap <Leader>li :LspHover<cr> noremap <Leader>li :LspHover<cr>
noremap <Leader>lr :LspReferences<cr> noremap <Leader>lr :LspReferences<cr>
noremap <Leader>lR :LspRename<cr>
noremap <Leader>ls :LspDocumentSymbol<cr> noremap <Leader>ls :LspDocumentSymbol<cr>
noremap <Leader>lS :LspWorkspaceSymbol<cr>

View file

@ -56,6 +56,7 @@ let g:which_key_map.h.v = 'vim-help'
" Language helpers " Language helpers
let g:which_key_map.l = { 'name' : '+language' } 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.d = 'diagnostics'
let g:which_key_map.l.f = 'format' let g:which_key_map.l.f = 'format'
let g:which_key_map.l.g = { 'name' : '+goto' } let g:which_key_map.l.g = { 'name' : '+goto' }