update tabline
This commit is contained in:
parent
a086626556
commit
8fa8075e6f
|
@ -52,15 +52,9 @@ function! MyTabLine() "{{{
|
|||
|
||||
let l:customtabline .= '%T%#TabLineFill#%='
|
||||
|
||||
if exists('*gutentags#statusline')
|
||||
let l:customtabline .= '%#TabLineItemSel# %{gutentags#statusline("[ ", " ☢ ] ")}'
|
||||
endif
|
||||
let l:customtabline .= '%#TabLineItem# %{getcwd()}% '
|
||||
if exists('*fugitive#statusline')
|
||||
let l:customtabline .= '%#TabLineItem# %{fugitive#statusline()}% '
|
||||
endif
|
||||
if exists('*ObsessionStatus')
|
||||
let l:customtabline .= "%#TabLineItemSel# %{ObsessionStatus(fnamemodify(v:this_session,':t'),'---')} %*"
|
||||
let l:customtabline .= "%#TabLineItem# %{ObsessionStatus(fnamemodify(v:this_session,':t'),'---')} %*"
|
||||
endif
|
||||
|
||||
return l:customtabline
|
||||
|
@ -68,11 +62,6 @@ function! MyTabLine() "{{{
|
|||
endfunction
|
||||
"}}}
|
||||
|
||||
hi def link TabLineItem TabLine
|
||||
hi def link TabLineItemSel TabLineSel
|
||||
hi def link TabLineNum TabLine
|
||||
hi def link TabLineNumSel TabLineSel
|
||||
|
||||
set tabline=%!MyTabLine()
|
||||
set showtabline=2
|
||||
|
||||
|
|
Loading…
Reference in New Issue