File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
" generate tabline, very straight forward
2
2
function ! wintabs#ui#get_tabline ()
3
- let spaceline = s: get_spaceline ()
3
+ let spaceline = [ g: wintabs_renderers . line_sep (), s: get_spaceline ()]
4
4
let bufline = s: truncate_line (
5
5
\0 ,
6
6
\s : get_bufline (0 ),
@@ -43,6 +43,11 @@ function! wintabs#ui#reset_statusline(window)
43
43
return ' '
44
44
endfunction
45
45
46
+ " public function to expose fragment for vimtabs
47
+ function ! wintabs#ui#get_vimtabs_fragment ()
48
+ return wintabs#element#render (s: get_spaceline ())
49
+ endfunction
50
+
46
51
" private functions below
47
52
48
53
" generate bufline per window
@@ -239,7 +244,7 @@ function! s:get_spaceline()
239
244
return [' ' , 0 ]
240
245
endif
241
246
242
- let line = [g: wintabs_renderers . line_sep () ]
247
+ let line = []
243
248
let active_index = tabpagenr ()
244
249
245
250
for tab in range (1 , spaces)
Original file line number Diff line number Diff line change @@ -211,6 +211,8 @@ default: value of |statusline| option
211
211
content to tabline.
212
212
By default, this option is set to what 'original statusline'
213
213
is. If vim-airline is installed, airline#statusline() is used.
214
+ Set this option to a custom function like "%!MyStatusline()"
215
+ if you want to show complex and customized status on tabline.
214
216
Set this option to empty string to disable this behavior.
215
217
216
218
*g:wintabs_ignored_filetypes*
You can’t perform that action at this time.
0 commit comments