aboutsummaryrefslogtreecommitdiff
path: root/plugin/statusline.vim
diff options
context:
space:
mode:
authorMax Christian Pohle2019-03-25 00:37:29 +0100
committerMax Christian Pohle2019-03-25 00:37:29 +0100
commit709278107208a9ac4d3aef1c192f70f9200785e5 (patch)
tree95b897c1bdde2c7df3dcda15ea60c25ca40751f2 /plugin/statusline.vim
parent8a8fc4e8cb95c355abc7e97e69261cd104174a8b (diff)
downloadvim-709278107208a9ac4d3aef1c192f70f9200785e5.tar.bz2
vim-709278107208a9ac4d3aef1c192f70f9200785e5.zip
Added custom marks plugin & fixed submodules
Diffstat (limited to 'plugin/statusline.vim')
-rw-r--r--plugin/statusline.vim4
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)}"
..