diff --git a/autoload/airline/themes.vim b/autoload/airline/themes.vim index 920a225b..15db5ee8 100644 --- a/autoload/airline/themes.vim +++ b/autoload/airline/themes.vim @@ -45,6 +45,7 @@ function! airline#themes#patch(palette) endfor let a:palette.accents = get(a:palette, 'accents', {}) + let a:palette.accents.none = [ '', '', '', '', '' ] let a:palette.accents.bold = [ '', '', '', '', 'bold' ] let a:palette.accents.italic = [ '', '', '', '', 'italic' ] diff --git a/doc/airline.txt b/doc/airline.txt index bc36157f..280b4c76 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -837,11 +837,19 @@ colors instead of the section's default foreground color. The following accents are defined by default. Themes can define their variants of the colors, but defaults will be provided if missing. > - bold, italic, red, green, blue, yellow, orange, purple + bold, italic, red, green, blue, yellow, orange, purple, none < The defaults configure the mode and line number parts to be bold, and the readonly part to be red. +"none" is special. This can be used, to remove a bold accent from an existing +theme. For example, usually the mode part of the statusline is usually defined +to be bold. However, it can be hard to remove an existing bold accent from the +default configuration. Therefore, you can use the none accent to remove +existing accents, so if you put > + call airline#parts#define_accent('mode', 'none') +the mode section will be set to non-bold font style. + ------------------------------------- *airline-sections* Once a part is defined, you can use helper functions to generate the statuslines for each section. For example, to use the part above, we could