Add recommended mappings for common LSP operations

This commit is contained in:
Danielle McLean 2023-10-09 17:21:22 +11:00
parent 6cb72c1dc8
commit db3019386f
Signed by: 00dani
GPG key ID: 52C059C3B22A753E

View file

@ -98,5 +98,10 @@ g:mucomplete#can_complete = {
}
import "./lsp.vim"
set keywordprg=:LspHover
lsp.LazyConfigure()
set keywordprg=:LspHover
nnoremap gd <Cmd>LspGotoDefinition<CR>
nnoremap gi <Cmd>LspGotoImpl<CR>
xnoremap <silent> <Leader>e <Cmd>LspSelectionExpand<CR>
xnoremap <silent> <Leader>s <Cmd>LspSelectionShrink<CR>