From 7edcb8133bfd469458f94039021d74258b3bf72c Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 1 Jun 2020 18:14:07 +0200 Subject: vim: remove coc and add nvim-lsp+compl --- .vim/after/plugin/lsp.vim | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 .vim/after/plugin/lsp.vim (limited to '.vim/after/plugin/lsp.vim') diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim deleted file mode 100644 index ffdea10..0000000 --- a/.vim/after/plugin/lsp.vim +++ /dev/null @@ -1,25 +0,0 @@ -if !has('nvim-0.5.0') - " echoerr 'nvim_lsp only works with neovim>=0.5.0' - finish -endif - -lua << EOF -local lsp = require 'nvim_lsp' -local util = require 'nvim_lsp/util' -local compl = require 'completion' - -lsp.gopls.setup{ - on_attach = compl.on_attach; - root_dir = util.root_pattern("go.mod"); -} -EOF - -" autocmd Filetype bash,shell,css,go,python,rust,tex,latex setl omnifunc=lsp#omnifunc -" au Filetype lua setl omnifunc=v:lua.vim.lsp.omnifunc - -nnoremap gd :call lsp#text_document_definition() -nnoremap gdc :call lsp#text_document_declaration() -nnoremap gt :call lsp#text_document_type_definition() -nnoremap gi :call lsp#text_document_implementation() -nnoremap ;h :call lsp#text_document_hover() -nnoremap ;s :call lsp#text_document_signature_help() -- cgit 1.4.1