aboutsummaryrefslogtreecommitdiff
path: root/init.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2019-09-17 23:18:28 +0800
committerjdhao <jdhao@hotmail.com>2019-09-17 23:18:28 +0800
commit2da854289147a04f6aa904366f0bf64a760d9fcf (patch)
tree6652b4075ce9b39442d6154a05fc8cf42c2c27d3 /init.vim
parenta28c908c667f113caa059e5933adc8ee65bf9803 (diff)
Update vim-airline settings
Diffstat (limited to 'init.vim')
-rw-r--r--init.vim17
1 files changed, 12 insertions, 5 deletions
diff --git a/init.vim b/init.vim
index fb2d7a5..bd573b2 100644
--- a/init.vim
+++ b/init.vim
@@ -23,7 +23,7 @@
" built over time and take your time to polish.
" Author: Jie-dong Hao
" Email: jdhao@hotmail.com
-" Update: 2019-09-16 11:49:42+0800
+" Update: 2019-09-17 17:35:03+0800
"}}
"{{ License: MIT License
@@ -1300,16 +1300,23 @@ let g:airline#extensions#tabline#buffer_nr_show = 1
let g:airline#extensions#tabline#buffer_nr_format = '%s. '
" Whether to show function or other tags on status line
-let g:airline#extensions#tagbar#enabled = 0
+let g:airline#extensions#tagbar#enabled = 1
" 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
-" Make airline more beautiful, see https://goo.gl/XLY19H for more info
-" let g:airline_powerline_fonts = 1
+" Whether to use powerline symbols, see https://goo.gl/XLY19H.
+let g:airline_powerline_fonts = 0
-" Show only hunks which are non-zero (git-related)
+if !exists('g:airline_symbols')
+ let g:airline_symbols = {}
+endif
+let g:airline_symbols.branch = '⎇'
+let g:airline_symbols.paste = 'ρ'
+let g:airline_symbols.spell = 'Ꞩ'
+
+" Only show git hunks which are non-zero
let g:airline#extensions#hunks#non_zero_only = 1
" Speed up airline