mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-26 23:44:30 +02:00
highlighter: vim9 script implementation of load_theme
This commit is contained in:
parent
4f8675434a
commit
798a346a91
@ -501,4 +501,18 @@ else
|
|||||||
dict[group] = colors
|
dict[group] = colors
|
||||||
airline#highlighter#exec(group, colors)
|
airline#highlighter#exec(group, colors)
|
||||||
enddef
|
enddef
|
||||||
|
def airline#highlighter#load_theme(): void # {{{2
|
||||||
|
if pumvisible()
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
for winnr in filter(range(1, winnr('$')), {_, v -> v != winnr()})
|
||||||
|
airline#highlighter#highlight_modified_inactive(winbufnr(winnr))
|
||||||
|
endfor
|
||||||
|
airline#highlighter#highlight(['inactive'])
|
||||||
|
if getbufvar( bufnr('%'), '&modified' )
|
||||||
|
airline#highlighter#highlight(['normal', 'modified'])
|
||||||
|
else
|
||||||
|
airline#highlighter#highlight(['normal'])
|
||||||
|
endif
|
||||||
|
enddef
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user