mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-07 20:54:26 +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
|
||||
return group
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user