aboutsummaryrefslogtreecommitdiff
path: root/core/plugins.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-11-19 22:45:47 +0800
committerjdhao <jdhao@hotmail.com>2020-11-19 22:45:47 +0800
commit6b192cecbd5a6d39d1788988f8a91c1b1091b01c (patch)
treebc7ac98ca9bcc2d3a1e4084e33a3ff1b5eb96a27 /core/plugins.vim
parent4c6c3e5e68e3f08bd38bf619b9045af271c4a2bd (diff)
update vista config
Diffstat (limited to 'core/plugins.vim')
-rw-r--r--core/plugins.vim21
1 files 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 <silent> <2-LeftMouse> :<C-U>call vista#cursor#FoldOrJump()<CR>
-
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 <buffer> <silent>
+ \ <2-LeftMouse> :<C-U>call vista#cursor#FoldOrJump()<CR>
+ " Quit Neovim if vista window is the only window
+ autocmd BufEnter * call s:close_vista_win()
+augroup END
+
nnoremap <silent> <Space>t :<C-U>Vista!!<CR>
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