From d58d4232e8186ea78cdff5e2c4bb221ec6b959e6 Mon Sep 17 00:00:00 2001 From: bretello Date: Wed, 8 Dec 2021 23:55:17 +0100 Subject: [PATCH] vim: cleanup airline config --- vim/plugins_config.vim | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/vim/plugins_config.vim b/vim/plugins_config.vim index 136bb0e..68f4e7c 100644 --- a/vim/plugins_config.vim +++ b/vim/plugins_config.vim @@ -107,8 +107,25 @@ let g:gitgutter_sign_modified = '~' let g:gitgutter_sign_modified_removed = 'x' " Airline config -set laststatus=2 -" let g:airline#extensions#tabline#enabled = 1 +" set laststatus=2 +let g:airline#extensions#tabline#enabled = 1 +let g:airline#extensions#tabline#show_splits = 1 +" let g:airline#extensions#tabline#tab_nr_type = 2 + +let g:airline#extensions#tabline#buffer_idx_mode = 1 +nmap 1 AirlineSelectTab1 +nmap 2 AirlineSelectTab2 +nmap 3 AirlineSelectTab3 +nmap 4 AirlineSelectTab4 +nmap 5 AirlineSelectTab5 +nmap 6 AirlineSelectTab6 +nmap 7 AirlineSelectTab7 +nmap 8 AirlineSelectTab8 +nmap 9 AirlineSelectTab9 +nmap 0 AirlineSelectTab0 +nmap - AirlineSelectPrevTab +nmap + AirlineSelectNextTab + let g:airline_theme='gruvbox' if !exists('g:airline_symbols') let g:airline_symbols = {} @@ -117,15 +134,18 @@ let g:airline_left_sep = '' let g:airline_left_alt_sep = '' let g:airline_right_sep = '' let g:airline_right_alt_sep = '' -" let g:airline_symbols = {} let g:airline_symbols.branch = '' let g:airline_symbols.readonly = '' " let g:airline_symbols.linenr = '☰' +let g:airline_symbols.colnr = ':' let g:airline_symbols.linenr = '' +let g:airline_symbols.maxlinenr = '' " let g:airline_section_c = '' " let g:airline_section_c = '%t' let g:airline_section_y = '' -let g:airline_section_x = '' +" let g:airline_section_x = 'tagbar' +let g:airline#extensions#tagbar#flags = 'p' +let g:airline#extensions#tagbar#searchmethod = 'scoped-stl' " let g:airline_symbols.dirty='⚡' " let g:airline#extensions#branch#vcs_checks = ['untracked', 'dirty']