From 3cc6c3e489d39f6a9df48639e835fbca9f6c2fe4 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 27 Mar 2022 10:24:34 +0800 Subject: Refactor airline config (vim) --- .vim/after/plugin/airline.vim | 3 --- .vim/after/plugin/tagbar.vim | 2 ++ .vim/plugin/gutentags.vim | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.vim/after/plugin/airline.vim b/.vim/after/plugin/airline.vim index ce3eb77..b94896d 100644 --- a/.vim/after/plugin/airline.vim +++ b/.vim/after/plugin/airline.vim @@ -1,4 +1 @@ let g:airline#extensions#tabline#enabled = 1 -let g:airline#extensions#tagbar#enabled = 1 -let g:airline#extensions#gutentags#enabled = 1 - diff --git a/.vim/after/plugin/tagbar.vim b/.vim/after/plugin/tagbar.vim index 6ed56d8..213aae0 100644 --- a/.vim/after/plugin/tagbar.vim +++ b/.vim/after/plugin/tagbar.vim @@ -1,4 +1,6 @@ let g:tagbar_autoclose = 1 let g:tagbar_autofocus = 1 +let g:airline#extensions#tagbar#enabled = 1 + nnoremap s :TagbarToggle diff --git a/.vim/plugin/gutentags.vim b/.vim/plugin/gutentags.vim index 25bfaaf..cab2f3b 100644 --- a/.vim/plugin/gutentags.vim +++ b/.vim/plugin/gutentags.vim @@ -10,6 +10,8 @@ let g:gutentags_define_advanced_commands = 1 let $GTAGSLABEL = 'native-pygments' let $GTAGSCONF = '/usr/local/share/gtags/gtags.conf' +let g:airline#extensions#gutentags#enabled = 1 + let g:gutentags_modules = [] if executable('ctags') let g:gutentags_modules += ['ctags'] -- cgit v1.2.3