mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2026-02-25 06:07:13 +08:00
Add normal_modified highlighting to minimalist theme
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
|
||||
let s:theme = 'minimalist'
|
||||
|
||||
" To highlight when the buffer is modified:
|
||||
" let g:airline_minimalist_showmod = 1
|
||||
let s:want_showmod = get(g:, 'airline_minimalist_showmod', 0)
|
||||
|
||||
function! airline#themes#{s:theme}#refresh()
|
||||
if &background == "dark"
|
||||
" Normal
|
||||
@@ -54,6 +58,10 @@ function! airline#themes#{s:theme}#refresh()
|
||||
|
||||
let palette.inactive = airline#themes#generate_color_map(IA, IA, IA)
|
||||
|
||||
if s:want_showmod
|
||||
let palette.normal_modified = { 'airline_a': NR, 'airline_z': NR }
|
||||
endif
|
||||
|
||||
" Accents
|
||||
let palette.accents = {
|
||||
\ 'red': [ ER[1], '', ER[3], '' ]
|
||||
|
||||
Reference in New Issue
Block a user