Vim: updated plugins (vista, targets, vice)
This commit is contained in:
22
.vimrc
22
.vimrc
@@ -56,7 +56,9 @@ Plugin 'justinmk/vim-sneak' " easy movement
|
|||||||
"Plugin 'easymotion/vim-easymotion'
|
"Plugin 'easymotion/vim-easymotion'
|
||||||
Plugin 'ludovicchabant/vim-gutentags' "Auto generate tags
|
Plugin 'ludovicchabant/vim-gutentags' "Auto generate tags
|
||||||
"Plugin 'andymass/vim-matchup' " Improve if-else matches
|
"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 {{{
|
" Git integration {{{
|
||||||
@@ -64,6 +66,7 @@ Plugin 'vim-scripts/taglist.vim'
|
|||||||
Plugin 'mhinz/vim-signify' " Mark edited lines - faster gitgutter
|
Plugin 'mhinz/vim-signify' " Mark edited lines - faster gitgutter
|
||||||
"Plugin 'rhysd/git-messenger.vim' " show git history
|
"Plugin 'rhysd/git-messenger.vim' " show git history
|
||||||
"Plugin 'tpope/vim-fugitive' " Git integration
|
"Plugin 'tpope/vim-fugitive' " Git integration
|
||||||
|
Plugin 'lambdalisue/gina.vim'
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Syntax for random filetypes {{{
|
" Syntax for random filetypes {{{
|
||||||
@@ -75,10 +78,9 @@ Plugin 'pboettch/vim-cmake-syntax'
|
|||||||
|
|
||||||
" Colorschemes {{{
|
" Colorschemes {{{
|
||||||
Plugin 'flazz/vim-colorschemes' " lots of colorschemes
|
Plugin 'flazz/vim-colorschemes' " lots of colorschemes
|
||||||
"Plugin 'octol/vim-cpp-enhanced-highlight'
|
|
||||||
"Plugin 'vim-scripts/CycleColor'
|
|
||||||
"Plugin 'jeaye/color_coded'
|
"Plugin 'jeaye/color_coded'
|
||||||
"Plugin 'thiagoalessio/rainbow_levels.vim'
|
"Plugin 'thiagoalessio/rainbow_levels.vim'
|
||||||
|
Plugin 'fielding/vice'
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Other plugins (external tools, etc) {{{
|
" Other plugins (external tools, etc) {{{
|
||||||
@@ -233,7 +235,7 @@ match Error /\s\+$\|DU\cPA/
|
|||||||
|
|
||||||
" Removing scrollbars
|
" Removing scrollbars
|
||||||
if !has("gui_running")
|
if !has("gui_running")
|
||||||
colorscheme badwolf
|
colorscheme vice
|
||||||
set background=dark
|
set background=dark
|
||||||
" To show special characters in Vim
|
" To show special characters in Vim
|
||||||
set listchars=tab:▸\ ,trail:¬
|
set listchars=tab:▸\ ,trail:¬
|
||||||
@@ -476,3 +478,15 @@ nnoremap <silent> <space>j :<C-u>CocNext<CR>
|
|||||||
nnoremap <silent> <space>k :<C-u>CocPrev<CR>
|
nnoremap <silent> <space>k :<C-u>CocPrev<CR>
|
||||||
" Resume latest coc list
|
" Resume latest coc list
|
||||||
nnoremap <silent> <space>p :<C-u>CocListResume<CR>
|
nnoremap <silent> <space>p :<C-u>CocListResume<CR>
|
||||||
|
|
||||||
|
" 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()
|
||||||
|
|||||||
Reference in New Issue
Block a user