aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-08 19:57:45 +0800
committerGuangxiong Lin <[email protected]>2022-04-08 19:57:45 +0800
commit7c4e8a15b94ae10239ae9b64da71d3e1d5a6a215 (patch)
tree11253f8c731f23891877b982c2c37153f398c9cf
parent7dce57ae076e60c297d0035b72e0a63b6dbfaeb5 (diff)
downloaddotfiles-7c4e8a15b94ae10239ae9b64da71d3e1d5a6a215.tar.gz
dotfiles-7c4e8a15b94ae10239ae9b64da71d3e1d5a6a215.tar.bz2
dotfiles-7c4e8a15b94ae10239ae9b64da71d3e1d5a6a215.zip
Update vim-lsp config
-rw-r--r--.vim/after/plugin/lsp.vim11
1 files changed, 0 insertions, 11 deletions
diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim
index 0f53146..6066caa 100644
--- a/.vim/after/plugin/lsp.vim
+++ b/.vim/after/plugin/lsp.vim
@@ -1,14 +1,6 @@
let g:lsp_diagnostics_enabled = 0
let g:lsp_document_code_action_signs_enabled = 0
-if executable('pyls')
- au User lsp_setup call lsp#register_server({
- \ 'name': 'pyls',
- \ 'cmd': {server_info->['pyls']},
- \ 'allowlist': ['python'],
- \ })
-endif
-
if executable('gopls')
au User lsp_setup call lsp#register_server({
\ 'name': 'gopls',
@@ -19,7 +11,6 @@ endif
function! s:on_lsp_buffer_enabled() abort
setlocal omnifunc=lsp#complete
- setlocal signcolumn=yes
if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif
nmap <buffer> gd <plug>(lsp-definition)
nmap <buffer> gs <plug>(lsp-document-symbol-search)
@@ -28,8 +19,6 @@ function! s:on_lsp_buffer_enabled() abort
nmap <buffer> gi <plug>(lsp-implementation)
nmap <buffer> gy <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)
let g:lsp_format_sync_timeout = 1000