mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-08-13 03:11:04 +08:00
extensions: Add a tabpanel extension
Add a new tabpanel extension that provides airline-styled formatting for Vim's vertical tab panel feature. Uses airline tabline highlight groups (TabPanelFill, TabPanelSel, TabPanel) and refreshes them on theme changes. Requires a Vim version with 'tabpanel' support. Extension implemented using Vim9Script so not Neovim compatible fixes: #2724 closes: #2746 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
723def3fa8
commit
7fe264257e
@@ -400,6 +400,11 @@ function! airline#extensions#load()
|
||||
call add(s:loaded_ext, 'tabline')
|
||||
endif
|
||||
|
||||
if get(g:, 'airline#extensions#tabpanel#enabled', 0)
|
||||
call airline#extensions#tabpanel#Init(s:ext)
|
||||
call add(s:loaded_ext, 'tabpanel')
|
||||
endif
|
||||
|
||||
if get(g:, 'airline#extensions#tmuxline#enabled', 1) && exists(':Tmuxline')
|
||||
call airline#extensions#tmuxline#init(s:ext)
|
||||
call add(s:loaded_ext, 'tmuxline')
|
||||
|
||||
Reference in New Issue
Block a user