Add more vim-lsp mappings :)
This commit is contained in:
parent
4160b65193
commit
4547cf6c85
1 changed files with 4 additions and 0 deletions
|
@ -100,8 +100,12 @@ g:mucomplete#can_complete = {
|
|||
import "./lsp.vim"
|
||||
lsp.LazyConfigure()
|
||||
|
||||
set formatexpr=lsp#lsp#FormatExpr()
|
||||
set keywordprg=:LspHover
|
||||
nnoremap gD <Cmd>LspGotoDeclaration<CR>
|
||||
nnoremap gd <Cmd>LspGotoDefinition<CR>
|
||||
nnoremap gi <Cmd>LspGotoImpl<CR>
|
||||
nnoremap <C-k> <Cmd>LspShowSignature<CR>
|
||||
nnoremap gr <Cmd>LspShowReferences<CR>
|
||||
xnoremap <silent> <Leader>e <Cmd>LspSelectionExpand<CR>
|
||||
xnoremap <silent> <Leader>s <Cmd>LspSelectionShrink<CR>
|
||||
|
|
Loading…
Reference in a new issue