Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 1 | set statusline=%t "tail of the filename |
| 2 | set statusline+=[%{strlen(&fenc)?&fenc:'none'}, "file encoding |
| 3 | set statusline+=%{&ff}] "file format |
| 4 | set statusline+=%h "help file flag |
| 5 | set statusline+=%m "modified flag |
| 6 | set statusline+=%r "read only flag |
| 7 | set statusline+=%y "filetype |
| 8 | set statusline+=%= "left/right separator |
| 9 | set statusline+=%c, "cursor column |
| 10 | set statusline+=%l/%L "cursor line/total lines |
| 11 | set statusline+=\ %P "percent through file |
| 12 | " TODO: Check if this is actually used with airline |
| 13 | |
| 14 | let g:airline#extensions#hunks#coc_git = 1 |
| 15 | let g:airline#extensions#whitespace#enabled = 1 |
Skyler Grey | ce6f7fa | 2022-09-09 15:07:07 +0100 | [diff] [blame] | 16 | let g:airline#extensions#whitespace#checks = ['indent', 'trailing', 'mixed-indent-file', 'conflicts'] |
| 17 | let g:airline#extensions#whitespace#skip_indent_check_ft = |
| 18 | \ {'markdown': ['trailing']} |
| 19 | |
Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 20 | let g:airline#parts#ffenc#skip_expected_string='utf-8[unix]' |
| 21 | let g:airline_skip_empty_sections = 1 |
Skyler Grey | ce6f7fa | 2022-09-09 15:07:07 +0100 | [diff] [blame] | 22 | let g:airline#extensions#whitespace#mixed_indent_algo = 2 |