Update vim-lsp settings
This commit is contained in:
parent
efc29ec3b9
commit
97875214fa
@ -195,12 +195,14 @@ function! s:on_lsp_buffer_enabled() abort
|
||||
if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif
|
||||
nmap <buffer> gd <plug>(lsp-definition)
|
||||
nmap <buffer> gr <plug>(lsp-references)
|
||||
nmap <buffer> gi <plug>(lsp-implementation)
|
||||
nmap <buffer> gt <plug>(lsp-type-definition)
|
||||
" nmap <buffer> gi <plug>(lsp-implementation)
|
||||
" nmap <buffer> gt <plug>(lsp-type-definition)
|
||||
nmap <buffer> <leader>rn <plug>(lsp-rename)
|
||||
nmap <buffer> [g <Plug>(lsp-previous-diagnostic)
|
||||
nmap <buffer> ]g <Plug>(lsp-next-diagnostic)
|
||||
nmap <buffer> K <plug>(lsp-hover)
|
||||
nmap <buffer> .g <Plug>(lsp-previous-diagnostic)
|
||||
nmap <buffer> ,g <Plug>(lsp-next-diagnostic)
|
||||
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
|
||||
endfunction
|
||||
@ -213,4 +215,4 @@ augroup END
|
||||
|
||||
let g:lsp_auto_enable = 0
|
||||
|
||||
command -nargs=0 LspStart call lsp#activate()
|
||||
" command -nargs=0 LspStart call lsp#activate()
|
||||
|
Loading…
Reference in New Issue
Block a user