From 6b192cecbd5a6d39d1788988f8a91c1b1091b01c Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 19 Nov 2020 22:45:47 +0800 Subject: [PATCH] update vista config --- core/plugins.vim | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/core/plugins.vim b/core/plugins.vim index a7c13af..78bfb74 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -551,18 +551,24 @@ let g:gutentags_ctags_exclude = ['*.md', '*.html', '*.json', '*.toml', '*.css', let g:gutentags_cache_dir = stdpath('cache') . '/ctags' """"""""""""""""""""""""""" vista settings """""""""""""""""""""""""""""""""" -" Double click to go to a tag -nnoremap <2-LeftMouse> :call vista#cursor#FoldOrJump() - let g:vista#renderer#icons = { -\ 'member': '', -\ } + \ 'member': '', + \ } " Do not echo message on command line let g:vista_echo_cursor = 0 " Stay in current window when vista window is opened let g:vista_stay_on_open = 0 +augroup matchup_conf + autocmd! + " Double mouse click to go to a tag + autocmd FileType vista* nnoremap + \ <2-LeftMouse> :call vista#cursor#FoldOrJump() + " Quit Neovim if vista window is the only window + autocmd BufEnter * call s:close_vista_win() +augroup END + nnoremap t :Vista!! function! s:close_vista_win() abort @@ -570,11 +576,6 @@ function! s:close_vista_win() abort quit endif endfunction - -augroup vista_close_win - autocmd! - autocmd BufEnter * call s:close_vista_win() -augroup END "}} "{{ File editting