aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-05-10 00:00:28 +0800
committerGuangxiong Lin <[email protected]>2022-05-10 00:00:28 +0800
commitd2ed291c5f9db11e0d1b227f05464e8bb4704867 (patch)
tree2e34bae45e9d2731dee608ef69c8431b50562944
parent125e4ed168252fa6b52a33146e4107b77a4817c6 (diff)
downloaddotfiles-d2ed291c5f9db11e0d1b227f05464e8bb4704867.tar.gz
dotfiles-d2ed291c5f9db11e0d1b227f05464e8bb4704867.tar.bz2
dotfiles-d2ed291c5f9db11e0d1b227f05464e8bb4704867.zip
Reduce the extensions loaded by airline (vim)
-rw-r--r--.vim/after/plugin/airline.vim10
-rw-r--r--.vim/after/plugin/ale.vim2
-rw-r--r--.vim/after/plugin/gutentags.vim2
-rw-r--r--.vim/after/plugin/lsp.vim2
-rw-r--r--.vim/after/plugin/minpac.vim4
-rw-r--r--.vim/after/plugin/tagbar.vim2
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 <silent> [g <Plug>(ale_previous_wrap)
nmap <silent> ]g <Plug>(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 <leader><leader>s :TagbarToggle<CR>