mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-26 23:44:30 +02:00
tabline: Vim9 script implementation of add_label
This commit is contained in:
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user