Added shortcut for LSP code actions
This commit is contained in:
parent
6cfc625a14
commit
6fd747b429
2 changed files with 5 additions and 3 deletions
|
@ -9,12 +9,13 @@ let g:lsp_signs_error = {'text': '✗'}
|
|||
let g:lsp_signs_warning = {'text': '‼'}
|
||||
|
||||
" Keyboard shortcuts
|
||||
noremap <Leader>lR :LspRename<cr>
|
||||
noremap <Leader>lS :LspWorkspaceSymbol<cr>
|
||||
noremap <Leader>la :LspCodeAction<cr>
|
||||
noremap <Leader>ld :LspDocumentDiagnostics<cr>
|
||||
noremap <Leader>lf :LspDocumentFormat<cr>
|
||||
noremap <Leader>lgd :LspDefinition<cr>
|
||||
noremap <Leader>lgD :LspDeclaration<cr>
|
||||
noremap <Leader>lgd :LspDefinition<cr>
|
||||
noremap <Leader>li :LspHover<cr>
|
||||
noremap <Leader>lr :LspReferences<cr>
|
||||
noremap <Leader>lR :LspRename<cr>
|
||||
noremap <Leader>ls :LspDocumentSymbol<cr>
|
||||
noremap <Leader>lS :LspWorkspaceSymbol<cr>
|
||||
|
|
|
@ -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' }
|
||||
|
|
Loading…
Reference in a new issue