diff --git a/internal/display/infowindow.go b/internal/display/infowindow.go index 3931067d..096c8d33 100644 --- a/internal/display/infowindow.go +++ b/internal/display/infowindow.go @@ -260,7 +260,9 @@ func (i *InfoWindow) Display() { done := false statusLineStyle := config.DefStyle.Reverse(true) - if style, ok := config.Colorscheme["statusline"]; ok { + if style, ok := config.Colorscheme["statusline.suggestions"]; ok { + statusLineStyle = style + } else if style, ok := config.Colorscheme["statusline"]; ok { statusLineStyle = style } keymenuOffset := 0 diff --git a/internal/display/statusline.go b/internal/display/statusline.go index be808eee..577c234d 100644 --- a/internal/display/statusline.go +++ b/internal/display/statusline.go @@ -110,7 +110,9 @@ func (s *StatusLine) Display() { // autocomplete suggestions (for the buffer, not for the infowindow) if b.HasSuggestions && len(b.Suggestions) > 1 { statusLineStyle := config.DefStyle.Reverse(true) - if style, ok := config.Colorscheme["statusline"]; ok { + if style, ok := config.Colorscheme["statusline.suggestions"]; ok { + statusLineStyle = style + } else if style, ok := config.Colorscheme["statusline"]; ok { statusLineStyle = style } x := 0 @@ -167,8 +169,16 @@ func (s *StatusLine) Display() { rightText = formatParser.ReplaceAllFunc(rightText, formatter) statusLineStyle := config.DefStyle.Reverse(true) - if style, ok := config.Colorscheme["statusline"]; ok { - statusLineStyle = style + if s.win.IsActive() { + if style, ok := config.Colorscheme["statusline"]; ok { + statusLineStyle = style + } + } else { + if style, ok := config.Colorscheme["statusline.inactive"]; ok { + statusLineStyle = style + } else if style, ok := config.Colorscheme["statusline"]; ok { + statusLineStyle = style + } } leftLen := util.StringWidth(leftText, util.CharacterCount(leftText), 1)