From f5d56602df70950de6b7d40966b00c9939c81763 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 26 Jan 2020 17:16:07 +0100 Subject: Intial commit of v2 See https://drewdevault.com/2019/12/30/dotfiles.html --- .vim/after/plugin/lsp.vim | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create 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 new file mode 100644 index 0000000..d31886a --- /dev/null +++ b/.vim/after/plugin/lsp.vim @@ -0,0 +1,22 @@ +" if !has('nvim-0.5.0') +" echoerr 'nvim_lsp only works with neovim>=0.5.0' +" finish +" endif +finish + +silent LspInstall bashls +silent LspInstall cssls + +" call nvim_lsp#setup("gopls", {}) +call nvim_lsp#setup("pyls", {}) +call nvim_lsp#setup("rust_analyzer", {}) +call nvim_lsp#setup("texlab", {}) + +autocmd Filetype bash,shell,css,go,python,rust,tex,latex setl omnifunc=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