From e51181acb62237f45505e4009e0d9220fe514e87 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 17 Jun 2020 18:12:04 +0200 Subject: vim: vista: s/coc/nvim-lsp/ also change the lsp bindings --- .vim/init.vim | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to '.vim/init.vim') diff --git a/.vim/init.vim b/.vim/init.vim index c1211ff..2487778 100644 --- a/.vim/init.vim +++ b/.vim/init.vim @@ -157,10 +157,12 @@ let g:sneak#label = 1 " vista {{{2 let g:vista_icon_indent = ['> ', '* '] let g:vista_default_executive = 'ctags' -" let g:vista_executive_for = { -" \ 'javascript': 'coc', -" \ 'python': 'coc', -" \ } +let g:vista_go_executive = 'nvim_lsp' +let g:vista_rust_executive = 'nvim_lsp' +let g:vista_ctags_cmd = { +\ 'vimwiki': $HOME . '/.vim/vwtags.py markdown', +\ } + let g:vista#renderer#enable_icon = 0 let g:vista#renderer#icons = { \ 'func': "f", @@ -272,12 +274,15 @@ lsp.rust_analyzer.setup{ 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() + nnoremap gd lua vim.lsp.buf.declaration() + nnoremap gD lua vim.lsp.buf.definition() + nnoremap gT lua vim.lsp.buf.type_definition() + nnoremap gI lua vim.lsp.buf.implementation() + nnoremap gr lua vim.lsp.buf.references() + nnoremap g0 lua vim.lsp.buf.document_symbol() + nnoremap gW lua vim.lsp.buf.workspace_symbol() + nnoremap ;h lua vim.lsp.buf.hover() + nnoremap ;s lua vim.lsp.buf.signature_help() else echoerr 'nvim_lsp only works with neovim>=0.5.0' endif -- cgit 1.4.1