From bae9a01e31a8f286460722e0c52ba0c1b4ff5c8b Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 14 Sep 2022 10:55:40 +0100 Subject: removed vim-lsp plugin and config file that was causing problems --- vim/plugin/lsp.vim | 45 --------------------------------------------- vim/vimrc | 2 +- 2 files changed, 1 insertion(+), 46 deletions(-) delete mode 100644 vim/plugin/lsp.vim (limited to 'vim') diff --git a/vim/plugin/lsp.vim b/vim/plugin/lsp.vim deleted file mode 100644 index ea2f62d..0000000 --- a/vim/plugin/lsp.vim +++ /dev/null @@ -1,45 +0,0 @@ -func! s:setup_ls(...) abort - let l:servers = lsp#get_allowed_servers() - - " key mappings - for l:server in l:servers - let l:cap = lsp#get_server_capabilities(l:server) - - if has_key(l:cap, 'completionProvider') - setlocal completefunc=lsp#complete - endif - - if has_key(l:cap, 'hoverProvider') - setlocal keywordprg=:LspHover - endif - - if has_key(l:cap, 'codeActionProvider') - nmap ga (lsp-code-action) - endif - - if has_key(l:cap, 'definitionProvider') - nmap gd (lsp-definition) - nmap gk (lsp-peek-definition) - endif - endfor -endfunc - -" register language server -augroup LSC - autocmd! - autocmd User lsp_setup call lsp#register_server({ - \ 'name': 'gopls', - \ 'cmd': {_->['gopls']}, - \ 'allowlist': ['go'] - \}) - - autocmd User lsp_server_init call setup_ls() - autocmd BufEnter * call setup_ls() -augroup END - -" disable diagnostics etc. -let g:lsp_diagnostics_enabled = 0 -let g:lsp_diagnostics_signs_enabled = 0 -let g:lsp_diagnostics_virtual_text_enabled = 0 -let g:lsp_diagnostics_highlights_enabled = 0 -let g:lsp_document_code_action_signs_enabled = 0 diff --git a/vim/vimrc b/vim/vimrc index 32b5ab5..417c969 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -144,7 +144,7 @@ autocmd BufLeave * call s:copy_filename_as_mdlink() " vim-plug call plug#begin('~/.vim/plugged') Plug 'morhetz/gruvbox' -Plug 'prabirshrestha/vim-lsp' +"Plug 'prabirshrestha/vim-lsp' Plug 'alok/notational-fzf-vim' Plug 'sheerun/vim-polyglot' "Plug 'neoclide/coc.nvim', {'branch': 'release'} -- cgit v1.2.3