Update vim-lsp settings

This commit is contained in:
Julian Ospald 2020-10-12 00:04:45 +02:00
parent efc29ec3b9
commit 97875214fa
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -195,12 +195,14 @@ function! s:on_lsp_buffer_enabled() abort
if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif
nmap <buffer> gd <plug>(lsp-definition) nmap <buffer> gd <plug>(lsp-definition)
nmap <buffer> gr <plug>(lsp-references) nmap <buffer> gr <plug>(lsp-references)
nmap <buffer> gi <plug>(lsp-implementation) " nmap <buffer> gi <plug>(lsp-implementation)
nmap <buffer> gt <plug>(lsp-type-definition) " nmap <buffer> gt <plug>(lsp-type-definition)
nmap <buffer> <leader>rn <plug>(lsp-rename) nmap <buffer> <leader>rn <plug>(lsp-rename)
nmap <buffer> [g <Plug>(lsp-previous-diagnostic) nmap <buffer> .g <Plug>(lsp-previous-diagnostic)
nmap <buffer> ]g <Plug>(lsp-next-diagnostic) nmap <buffer> ,g <Plug>(lsp-next-diagnostic)
nmap <buffer> K <plug>(lsp-hover) nmap <buffer> T <plug>(lsp-hover)
nmap <buffer> <leader>la <plug>(lsp-code-action)
nmap <buffer> <leader>sd <plug>(lsp-document-diagnostics)
" refer to doc to add more commands " refer to doc to add more commands
endfunction endfunction
@ -213,4 +215,4 @@ augroup END
let g:lsp_auto_enable = 0 let g:lsp_auto_enable = 0
command -nargs=0 LspStart call lsp#activate() " command -nargs=0 LspStart call lsp#activate()