diff --git a/apps/neovim/.gitignore b/apps/neovim/.gitignore index df6ea30..e705a23 100644 --- a/apps/neovim/.gitignore +++ b/apps/neovim/.gitignore @@ -6,4 +6,5 @@ !/settings.vim !/bindings.vim !/plugins.vim +!/airline.vim !/commands.vim diff --git a/apps/neovim/airline.vim b/apps/neovim/airline.vim new file mode 100644 index 0000000..90f63db --- /dev/null +++ b/apps/neovim/airline.vim @@ -0,0 +1,28 @@ +let g:airline_powerline_fonts = 1 +let g:airline#extensions#tabline#enabled = 1 " automatically displays all buffers when there's only one tab open +let g:airline#extensions#tabline#fnamemod = ':t' + +let g:airline#extensions#tabline#left_sep = '' +let g:airline#extensions#tabline#left_alt_sep = '' +let g:airline_right_alt_sep = '' +let g:airline_right_sep = '' +let g:airline_left_alt_sep= '' +let g:airline_left_sep = '' +let g:airline#extensions#tabline#buffers_label = '' + +let g:airline_mode_map = { + \ '__' : '-', + \ 'n' : 'N', + \ 'i' : 'I', + \ 'R' : 'R', + \ 'T' : 'T', + \ 't' : 'T', + \ 'c' : 'C', + \ 'v' : 'V', + \ 'V' : 'V', + \ '' : 'V', + \ 's' : 'S', + \ 'S' : 'S', + \ '' : 'S', + \ } +