From a6cdae262df868ff79c32dca3b61686ef5c8e433 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Thu, 12 Sep 2019 19:44:24 +0200 Subject: Improved Java support & minor fixes --- plugin/statusline.vim | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'plugin') diff --git a/plugin/statusline.vim b/plugin/statusline.vim index e3c03ed..20d6b7e 100644 --- a/plugin/statusline.vim +++ b/plugin/statusline.vim @@ -2,19 +2,14 @@ augroup MAX_FANCYLINE set noshowmode | " mode will be shown twice, in lightline and below, so we want to deactivate one set laststatus=2 | " required by AirLine and Lightline, without status line does not appear until a window split - let g:status_sym_start = '' - let g:status_sym_end = '' + let g:status_sym_start = '' + let g:status_sym_end = '' let g:status_sym_sep_start = '' let g:status_sym_sep_end = '' let g:symbol_branch = '' + let g:symbol_screen_edge = '░' if &term == "linux" - let g:status_sym_start = '' - let g:status_sym_end = '' - let g:status_sym_sep_start = '' - let g:status_sym_sep_end = '' - let g:symbol_branch = '' - let g:group_active = "StatusLineTerm" let g:group_inactive = "StatusLineTermNC" let g:group_tabline = "StatusLineTerm" @@ -62,6 +57,7 @@ augroup MAX_FANCYLINE return '' \ ."%#StatusLineHighlight#" \ ."%#".a:highlight_group."#" + \ .g:symbol_screen_edge.' ' \ ."%{(&readonly\ ?\ '\ \ 🔒'\ :\ '')}" \ ."%{(&modified\ ?\ '\ \ 💾'\ :\ '')}" \ ."%(%w%h%q%)".' '.l:mode.' '.g:status_sym_sep_start @@ -83,9 +79,9 @@ augroup MAX_FANCYLINE \ ."%{(&spell\ ?\ &spelllang.' '.g:status_sym_sep_end\ :\ '')}" \ ."%{(&fileencoding=~'^$\\|^utf\-8$'?'':&fileencoding.' '.g:status_sym_sep_end.' ')}" \ ."%{(&fileformat=~'^$\\|^unix$'?'':&fileformat.' '.g:status_sym_sep_end)}" - \ ."%l:%-3c" - \ .g:status_sym_sep_end.' ' + \ ."%cx%-l: " \ ."%p%% " + \ .g:symbol_screen_edge endfunction function! UpdateTabline(highlight_group) @@ -94,6 +90,7 @@ augroup MAX_FANCYLINE "  return '' \ ."%#".a:highlight_group."#" + \ .g:symbol_screen_edge \ ."%3( \ %)\ " \ ."%{getcwd(-1)}\ " \ ."%{FugitiveHead()==''?'':g:status_sym_sep_start.' '.g:symbol_branch.' '.FugitiveHead().' '}" @@ -109,6 +106,7 @@ augroup MAX_FANCYLINE \ ."%(%{v:servername}\ %{v:this_session}%)" \ .g:status_sym_sep_end.' ' \ ."%(\ \ \ %{tabpagenr()}/%{tabpagenr('$')}\ %)" + \ .g:symbol_screen_edge \ ."%##" \ ."" " end endfunction -- cgit v1.2.3