aboutsummaryrefslogtreecommitdiff
path: root/core/plugins.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-10-21 23:03:01 +0800
committerjdhao <jdhao@hotmail.com>2021-10-21 23:03:01 +0800
commitc8963f2dafce3028699eaac14fdb6238824766df (patch)
tree8f872c64d01f7321cf00f66e5330b72ede41c6b2 /core/plugins.vim
parent94f0c903e5a27e1ca36106a99b3208d6e7ca42a3 (diff)
update vim-airline conf
Diffstat (limited to 'core/plugins.vim')
-rw-r--r--core/plugins.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/plugins.vim b/core/plugins.vim
index ffefb39..674a8be 100644
--- a/core/plugins.vim
+++ b/core/plugins.vim
@@ -373,12 +373,10 @@ endif
" Set airline theme to a random one if it exists
let s:candidate_airlinetheme = ['ayu_mirage', 'lucius', 'ayu_dark', 'base16_bright',
\ 'base16_adwaita', 'raven', 'term', 'deus', 'onedark']
-let s:idx = utils#RandInt(0, len(s:candidate_airlinetheme)-1)
-let s:theme = s:candidate_airlinetheme[s:idx]
-let g:airline_theme=s:theme
+let g:airline_theme = utils#RandElement(s:candidate_airlinetheme)
" Whether to show function or other tags on status line
-let g:airline#extensions#vista#enabled = 1
+let g:airline#extensions#vista#enabled = 0
let g:airline#extensions#gutentags#enabled = 1
" Do not show search index in statusline since it is shown on command line
@@ -387,6 +385,8 @@ let g:airline#extensions#anzu#enabled = 0
" Enable vim-airline extension for nvim-lsp
let g:airline#extensions#nvimlsp#enabled = 1
+let g:airline#extensions#searchcount#enabled = 0
+
" Skip empty sections if there are nothing to show,
" extracted from https://vi.stackexchange.com/a/9637/15292
let g:airline_skip_empty_sections = 1