diff options
| author | Robert Günzler <r@gnzler.io> | 2020-01-26 17:16:07 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-01-26 18:00:59 +0100 |
| commit | f5d56602df70950de6b7d40966b00c9939c81763 (patch) | |
| tree | b50ffeb5496fe3525cc1bab2629389ced95435b7 /.vim/after/plugin/lsp.vim | |
Intial commit of v2
See https://drewdevault.com/2019/12/30/dotfiles.html
Diffstat (limited to '.vim/after/plugin/lsp.vim')
| -rw-r--r-- | .vim/after/plugin/lsp.vim | 22 |
1 files changed, 22 insertions, 0 deletions
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 <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> |