mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-12 13:23:35 +08:00
Add normal_modified highlighting to minimalist theme
This commit is contained in:
parent
8bf9615d13
commit
c00362b2b0
|
@ -7,6 +7,10 @@
|
||||||
|
|
||||||
let s:theme = 'minimalist'
|
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()
|
function! airline#themes#{s:theme}#refresh()
|
||||||
if &background == "dark"
|
if &background == "dark"
|
||||||
" Normal
|
" Normal
|
||||||
|
@ -54,6 +58,10 @@ function! airline#themes#{s:theme}#refresh()
|
||||||
|
|
||||||
let palette.inactive = airline#themes#generate_color_map(IA, IA, IA)
|
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
|
" Accents
|
||||||
let palette.accents = {
|
let palette.accents = {
|
||||||
\ 'red': [ ER[1], '', ER[3], '' ]
|
\ 'red': [ ER[1], '', ER[3], '' ]
|
||||||
|
|
|
@ -99,7 +99,7 @@ Currently this repository contains the following themes:
|
||||||
* light
|
* light
|
||||||
* lucius
|
* lucius
|
||||||
* luna
|
* luna
|
||||||
* minimalist
|
* minimalist (|airline-theme-minimalist|)
|
||||||
* molokai
|
* molokai
|
||||||
* monochrome
|
* monochrome
|
||||||
* murmur
|
* murmur
|
||||||
|
@ -196,6 +196,13 @@ setup once. However, it won't change colors if e.g. the mode changes.
|
||||||
Set to 256 for 256-color mode (the default), or 16 for 16-color mode.
|
Set to 256 for 256-color mode (the default), or 16 for 16-color mode.
|
||||||
Has no effect if using true/24-bit color. To enable 16-color mode: >
|
Has no effect if using true/24-bit color. To enable 16-color mode: >
|
||||||
let g:deus_termcolors = 16
|
let g:deus_termcolors = 16
|
||||||
|
|
||||||
|
*airline-theme-minimalist*
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
*g:airline_minimalist_showmod*
|
||||||
|
|
||||||
|
Highlight when the buffer is modified.
|
||||||
|
let g:airline_minimalist_showmod = 1
|
||||||
<
|
<
|
||||||
*airline-theme-onedark*
|
*airline-theme-onedark*
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user