mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-08 13:04:44 +08:00
tabline: Vim9 script implementation of add_label
This commit is contained in:
committed by
Christian Brabandt
parent
c8c30c9e3e
commit
6ff95bac4e
@@ -451,4 +451,10 @@ else
|
|||||||
endif
|
endif
|
||||||
return group
|
return group
|
||||||
enddef
|
enddef
|
||||||
|
def airline#extensions#tabline#add_label(dict: dict<any>, type: string, right: number): void # {{{2
|
||||||
|
if get(g:, 'airline#extensions#tabline#show_tab_type', 1)
|
||||||
|
dict.add_section_spaced('airline_tablabel' .. (right ? '_right' : ''),
|
||||||
|
get(g:, 'airline#extensions#tabline#' .. type .. '_label', type))
|
||||||
|
endif
|
||||||
|
enddef
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user