Add more vim-lsp mappings :)

This commit is contained in:
Danielle McLean 2023-10-10 12:00:33 +11:00
parent 4160b65193
commit 4547cf6c85
Signed by: 00dani
GPG key ID: 52C059C3B22A753E

View file

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