diff options
Diffstat (limited to 'plugin/statusline.vim')
| -rw-r--r-- | plugin/statusline.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/statusline.vim b/plugin/statusline.vim index 7bcc963..0dc1040 100644 --- a/plugin/statusline.vim +++ b/plugin/statusline.vim | |||
| @@ -42,6 +42,8 @@ augroup MAX_FANCYLINE | |||
| 42 | endfunction | 42 | endfunction |
| 43 | 43 | ||
| 44 | function! UpdateStatus(highlight_group) | 44 | function! UpdateStatus(highlight_group) |
| 45 | " TODO: make conditional (if devicons plugin is missing) | ||
| 46 | let l:webdev_ft_icon = WebDevIconsGetFileTypeSymbol('*.'.&filetype) | ||
| 45 | let l:invert_group = CreateInvertGroup(a:highlight_group) | 47 | let l:invert_group = CreateInvertGroup(a:highlight_group) |
| 46 | let l:mode = get({ | 48 | let l:mode = get({ |
| 47 | \ 'n' : 'normal', | 49 | \ 'n' : 'normal', |
| @@ -76,7 +78,7 @@ augroup MAX_FANCYLINE | |||
| 76 | \ .g:status_sym_start | 78 | \ .g:status_sym_start |
| 77 | \ ."%#".a:highlight_group."#" | 79 | \ ."%#".a:highlight_group."#" |
| 78 | \ ."%{&buftype==''?'':' '.&buftype.' '.g:status_sym_sep_start.' '}" | 80 | \ ."%{&buftype==''?'':' '.&buftype.' '.g:status_sym_sep_start.' '}" |
| 79 | \ ."%{&filetype==''?'':' '.&filetype.' '.g:status_sym_sep_start.' '}" | 81 | \ .l:webdev_ft_icon." %{&filetype==''?'':&filetype.' '.g:status_sym_sep_start.' '}" |
| 80 | \ ."%{(&spell\ ?\ &spelllang.' '.g:status_sym_sep_end\ :\ '')}" | 82 | \ ."%{(&spell\ ?\ &spelllang.' '.g:status_sym_sep_end\ :\ '')}" |
| 81 | \ ."%{(&fileencoding=~'^$\\|^utf\-8$'?'':&fileencoding.' '.g:status_sym_sep_end.' ')}" | 83 | \ ."%{(&fileencoding=~'^$\\|^utf\-8$'?'':&fileencoding.' '.g:status_sym_sep_end.' ')}" |
| 82 | \ ."%{(&fileformat=~'^$\\|^unix$'?'':&fileformat.' '.g:status_sym_sep_end)}" | 84 | \ ."%{(&fileformat=~'^$\\|^unix$'?'':&fileformat.' '.g:status_sym_sep_end)}" |
