From d6499f6ce80b57c5ca3963cdfc4bf7919de19474 Mon Sep 17 00:00:00 2001 From: Robert Kmiec Date: Tue, 29 Oct 2019 23:31:31 +0100 Subject: [PATCH] Vim: updated plugins (vista, targets, vice) --- .vimrc | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.vimrc b/.vimrc index ff361de..1c8d36a 100644 --- a/.vimrc +++ b/.vimrc @@ -56,7 +56,9 @@ Plugin 'justinmk/vim-sneak' " easy movement "Plugin 'easymotion/vim-easymotion' Plugin 'ludovicchabant/vim-gutentags' "Auto generate tags "Plugin 'andymass/vim-matchup' " Improve if-else matches -Plugin 'vim-scripts/taglist.vim' +"Plugin 'vim-scripts/taglist.vim' +Plugin 'liuchengxu/vista.vim' +Plugin 'wellle/targets.vim' " }}} " Git integration {{{ @@ -64,6 +66,7 @@ Plugin 'vim-scripts/taglist.vim' Plugin 'mhinz/vim-signify' " Mark edited lines - faster gitgutter "Plugin 'rhysd/git-messenger.vim' " show git history "Plugin 'tpope/vim-fugitive' " Git integration +Plugin 'lambdalisue/gina.vim' " }}} " Syntax for random filetypes {{{ @@ -75,10 +78,9 @@ Plugin 'pboettch/vim-cmake-syntax' " Colorschemes {{{ Plugin 'flazz/vim-colorschemes' " lots of colorschemes -"Plugin 'octol/vim-cpp-enhanced-highlight' -"Plugin 'vim-scripts/CycleColor' "Plugin 'jeaye/color_coded' "Plugin 'thiagoalessio/rainbow_levels.vim' +Plugin 'fielding/vice' " }}} " Other plugins (external tools, etc) {{{ @@ -233,7 +235,7 @@ match Error /\s\+$\|DU\cPA/ " Removing scrollbars if !has("gui_running") - colorscheme badwolf + colorscheme vice set background=dark " To show special characters in Vim set listchars=tab:▸\ ,trail:¬ @@ -476,3 +478,15 @@ nnoremap j :CocNext nnoremap k :CocPrev " Resume latest coc list nnoremap p :CocListResume + +" Vista configuration +function! NearestMethodOrFunction() abort + return get(b:, 'vista_nearest_method_or_function', '') +endfunction + +set statusline+=%{NearestMethodOrFunction()} + +" By default vista.vim never run if you don't call it explicitly. +" +" If you want to show the nearest function in your statusline automatically +autocmd VimEnter * call vista#RunForNearestMethodOrFunction()