From d2ed291c5f9db11e0d1b227f05464e8bb4704867 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 10 May 2022 00:00:28 +0800 Subject: Reduce the extensions loaded by airline (vim) --- .vim/after/plugin/airline.vim | 10 +++++++++- .vim/after/plugin/ale.vim | 2 -- .vim/after/plugin/gutentags.vim | 2 -- .vim/after/plugin/lsp.vim | 2 -- .vim/after/plugin/minpac.vim | 4 ++-- .vim/after/plugin/tagbar.vim | 2 -- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.vim/after/plugin/airline.vim b/.vim/after/plugin/airline.vim index b94896d..b8dfe77 100644 --- a/.vim/after/plugin/airline.vim +++ b/.vim/after/plugin/airline.vim @@ -1 +1,9 @@ -let g:airline#extensions#tabline#enabled = 1 +let g:airline#extensions#disable_rtp_load = 1 +let g:airline_symbols_ascii = 1 +let g:airline_extensions = ['tabline', 'ale', 'hunks'] + +let g:airline_extensions += ['branch'] +let g:airline#extensions#branch#format = 2 + +packadd vim-airline +packadd vim-airline-themes diff --git a/.vim/after/plugin/ale.vim b/.vim/after/plugin/ale.vim index 1b11e5c..104823b 100644 --- a/.vim/after/plugin/ale.vim +++ b/.vim/after/plugin/ale.vim @@ -11,8 +11,6 @@ let g:ale_linters = { \ 'go': ['gopls'], \ } -let g:airline#extensions#ale#enabled = 1 - nmap [g (ale_previous_wrap) nmap ]g (ale_next_wrap) diff --git a/.vim/after/plugin/gutentags.vim b/.vim/after/plugin/gutentags.vim index 0cc4ebf..2e905b9 100644 --- a/.vim/after/plugin/gutentags.vim +++ b/.vim/after/plugin/gutentags.vim @@ -9,8 +9,6 @@ let g:gutentags_define_advanced_commands = 1 let $GTAGSLABEL = 'native-pygments' -let g:airline#extensions#gutentags#enabled = 1 - let g:gutentags_modules = [] if executable('ctags') let g:gutentags_modules += ['ctags'] diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim index d2f0d03..fe36f12 100644 --- a/.vim/after/plugin/lsp.vim +++ b/.vim/after/plugin/lsp.vim @@ -1,8 +1,6 @@ let g:lsp_diagnostics_enabled = 0 let g:lsp_document_code_action_signs_enabled = 0 -let g:airline#extensions#lsp#enabled = 1 - if executable('pylsp') au User lsp_setup call lsp#register_server({ \ 'name': 'pylsp', diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim index 2033a82..555106b 100644 --- a/.vim/after/plugin/minpac.vim +++ b/.vim/after/plugin/minpac.vim @@ -59,8 +59,8 @@ function! InitMinpac() abort " appearance call minpac#add('https://github.com/joshdick/onedark.vim.git', {'type': 'opt'}) - call minpac#add('https://github.com/vim-airline/vim-airline.git') - call minpac#add('https://github.com/vim-airline/vim-airline-themes.git') + call minpac#add('https://github.com/vim-airline/vim-airline.git', {'type': 'opt'}) + call minpac#add('https://github.com/vim-airline/vim-airline-themes.git', {'type': 'opt'}) " chinese input method call minpac#add('https://github.com/lilydjwg/fcitx.vim.git', {'type': 'opt'}) diff --git a/.vim/after/plugin/tagbar.vim b/.vim/after/plugin/tagbar.vim index 691e781..28faf47 100644 --- a/.vim/after/plugin/tagbar.vim +++ b/.vim/after/plugin/tagbar.vim @@ -1,6 +1,4 @@ let g:tagbar_autoclose = 1 let g:tagbar_autofocus = 1 -let g:airline#extensions#tagbar#enabled = 0 - nnoremap s :TagbarToggle -- cgit v1.2.3