diff options
| author | Robert Günzler <r@gnzler.io> | 2020-06-01 18:14:07 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-06-01 18:32:20 +0200 |
| commit | 7edcb8133bfd469458f94039021d74258b3bf72c (patch) | |
| tree | 87b5f578c03dba0ad8da5fa95e6184cd5aef092d /.vim/after/plugin/lsp.vim | |
| parent | 8367490e2637385aae3984696c71949b640c8fc4 (diff) | |
vim: remove coc and add nvim-lsp+compl
Diffstat (limited to '.vim/after/plugin/lsp.vim')
| -rw-r--r-- | .vim/after/plugin/lsp.vim | 25 |
1 files changed, 0 insertions, 25 deletions
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 <silent> gd :call lsp#text_document_definition()<CR> -nnoremap <silent> gdc :call lsp#text_document_declaration()<CR> -nnoremap <silent> gt :call lsp#text_document_type_definition()<CR> -nnoremap <silent> gi :call lsp#text_document_implementation()<CR> -nnoremap <silent> ;h :call lsp#text_document_hover()<CR> -nnoremap <silent> ;s :call lsp#text_document_signature_help()<CR> |