From 7c4e8a15b94ae10239ae9b64da71d3e1d5a6a215 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 8 Apr 2022 19:57:45 +0800 Subject: Update vim-lsp config --- .vim/after/plugin/lsp.vim | 11 ----------- 1 file changed, 11 deletions(-) (limited to '.vim/after') 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 gd (lsp-definition) nmap gs (lsp-document-symbol-search) @@ -28,8 +19,6 @@ function! s:on_lsp_buffer_enabled() abort nmap gi (lsp-implementation) nmap gy (lsp-type-definition) nmap rn (lsp-rename) - " nmap [g (lsp-previous-diagnostic) - " nmap ]g (lsp-next-diagnostic) nmap K (lsp-hover) let g:lsp_format_sync_timeout = 1000 -- cgit v1.2.3