catppuccin / catppuccin/nvim

Mode name for ministatus dose not change if you overwrite the colors

Open
#876 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Lua
Stars
7.6k
Forks
339
PR merge metrics
No merged PRs in 30d

Description

### Description

If you overwrite any of the following

MiniStatuslineModeCommand
MiniStatuslineModeNormal
MiniStatuslineModeOther
MiniStatuslineModeReplace
MiniStatuslineModeVisual
MiniStatuslineModeInsert
MiniStatuslineInactive
MiniStatuslineFilename
MiniStatuslineFileinfo
MiniStatuslineDevinfo

The name of the mode will not change and just stay and stay in normal

### Neovim version

```markdown
NVIM v0.11.0
Build type: Release
LuaJIT 2.1.1741730670
```

### Terminal and multiplexer

kitty lattes

### Catppuccin version / branch / rev

main branch lates

### Steps to reproduce

overwrite fg and bg for all of
MiniStatuslineModeCommand
MiniStatuslineModeNormal
MiniStatuslineModeOther
MiniStatuslineModeReplace
MiniStatuslineModeVisual
MiniStatuslineModeInsert
MiniStatuslineInactive
MiniStatuslineFilename
MiniStatuslineFileinfo
MiniStatuslineDevinfo

In highlight_overrides with any color and compile the team

### Expected behavior

The status line keeps working as expected, just using the new colors.

### Actual behavior

Changing mode does not change the mode name from `Normal` to the correct mode

### Repro

```Lua
use the this on any new lazy.nvim config

return { -- You can easily change to a different colorscheme.
-- Change the name of the colorscheme plugin below, and then
-- change the command in the config to whatever the name of that colorscheme is.
--
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
'catppuccin/nvim',
name = 'catppuccin',
enabled = true,
priority = 1000, -- Make sure to load this before all the other start plugins.
config = function()
compile_path = vim.fn.stdpath 'cache' .. '/catppuccin'
-- Load the colorscheme here.
-- Like many other themes, this one has different styles, and you could load
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
--
--
local textcolor = '#f9e2af'
local blackbackground = '#000000'
local stringcolor = '#a6adc8'
local commentcolor = '#f5c2e7'
local numbercolor = '#89b4fa'
local creamtextcolor = '#d4c7a2'
local conditioncolor = '#eba0ac'
local cyberyellow = '#fadf2d'
local cybergreen = '#d8fa3c'
local cyberpink = '#fe1492'
local cyberblue = '#042ac1'
local cybertiel = '#01fffe'
local cyberligthblue = '#97cafa'
local jbbackgroundold = '#0C2827'
local jbbackground = '#09262A'
local jbtextcolorold = '#B9BCAB'
local jbtextcolorold2 = '#B9B59D'
local jbtextcolor = '#BDBA9F'
local jbstringcolor = '#77CCCB'
local jbtypecolor = '#B1E1D1'
local jbcommentcolor = '#5EAD38'
local jbnumbercolor = '#AEEAD8'
local jbconditioncolorold = '#BFD4E6'
local jbconditioncolor = '#F7FCFF'
local jbwhite = '#FBFFFF'
local jbsatuslinebackground = '#D1B88A'
local jbsatuslinetextcolor = '#142511'
require('catppuccin').setup {
color_overrides = {
mocha = {
base = jbbackground,
mantle = jbbackground,
crust = jbbackground,
},
},
highlight_overrides = {
all = function(colors)
return {
LineNr = { fg = jbwhite },
Whitespace = { fg = jbwhite },
MiniStatuslineModeCommand = { bg = jbsatuslinebackground, fg = jbsatuslinetextcolor },
MiniStatuslineModeNormal = { bg = jbsatuslinebackground, fg = jbsatuslinetextcolor },
MiniStatuslineModeOther = { bg = jbsatuslinebackground, fg = jbsatuslinetextcolor },
MiniStatuslineModeReplace = { bg = jbsatuslinebackground, fg = jbsatuslinetextcolor },
MiniStatuslineModeVisual = { bg = jbsatuslinebackground, fg = jbsatuslinetextcolor },
MiniStatuslineModeInsert = { bg = jbsatuslinebackground, fg = jbsatuslinetextcolor },
MiniStatuslineInactive = { bg = jbsatuslinebackground, fg = jbsatuslinetextcolor },
MiniStatuslineFilename = { bg = jbsatuslinebackground, fg = jbsatuslinetextcolor },
MiniStatuslineFileinfo = { bg = jbsatuslinebackground, fg = jbsatuslinetextcolor },
MiniStatuslineDevinfo = { bg = jbsatuslinebackground, fg = jbsatuslinetextcolor },
['@parameter'] = { fg = jbtextcolor },
['@constant'] = { fg = jbtextcolor },
['@text'] = { fg = jbtextcolor },
['@field'] = { fg = jbtextcolor },
['@property'] = { fg = jbtextcolor },
['@constructor'] = { fg = jbtextcolor },
['@module'] = { fg = jbtextcolor },
['@variable.parameter'] = { fg = jbtextcolor },
['@variable.member'] = { fg = jbtextcolor },
['@variable'] = { fg = jbtextcolor },
['@operator'] = { fg = jbtextcolor },
['@function'] = { fg = jbtextcolor },
['@function.method'] = { fg = jbtextcolor },
['@function.method.call'] = { fg = jbtextcolor },
['@type'] = { fg = jbtextcolor },
['@type.builtin'] = { fg = jbtextcolor },
['@type.definition'] = { fg = jbwhite },
['@keyword'] = { fg = jbtextcolor },
['@punctuation'] = { fg = jbtextcolor },
['@punctuation.bracket'] = { fg = jbtextcolor },
['@keyword.function'] = { fg = jbtextcolor },
['@keyword.operator'] = { fg = jbtextcolor },
['@keyword.exception'] = { fg = jbtextcolor },
['@keyword.import'] = { fg = jbtextcolor },
['@keyword.type'] = { fg = jbtextcolor },
['@keyword.conditional'] = { fg = jbwhite },
-- ['@keyword.conditional'] = { fg = '#cba6f7' },
['@keyword.repeat'] = { fg = jbwhite },
-- ['@keyword.repeat'] = { fg = '#cba6f7' },
['@keyword.return'] = { fg = jbwhite },
-- ['@keyword.return'] = { fg = '#c2eebd' },
['@function.call'] = { fg = jbtextcolor },
['@function.builtin'] = { fg = jbtextcolor },
['@boolean'] = { fg = jbtextcolor },
['@number'] = { fg = numbercolor },
['@constant.builtin'] = { fg = jbtextcolor },
['@string'] = { fg = jbstringcolor },
['@comment'] = { fg = jbcommentcolor },
['@comment.documentation'] = { fg = jbcommentcolor },
-- ['@spell'] = { fg = '#ebbaef' },
-- Function = { fg = textcolor },
-- Keyword = { fg = textcolor },
-- Character = { fg = textcolor },
-- Constant = { fg = textcolor },
-- Special = { fg = textcolor },
-- Operator = { fg = textcolor },
-- Identifier = { fg = textcolor },
-- Type = { fg = textcolor },
-- Structure = { fg = textcolor },
-- Label = { fg = textcolor },
-- Exception = { fg = textcolor },
-- PreProc = { fg = textcolor },
-- Include = { fg = textcolor },
-- Macro = { fg = textcolor },
-- StorageClass = { fg = textcolor },
-- Boolean = { fg = '#fcceb2' },
-- Number = { fg = '#fcceb2' },
-- String = { fg = '#ebbaef' },
-- Comment = { fg = '#b4befe' },
-- Conditional = { fg = '#bac2de' },
-- Repeat = { fg = '#bac2de' },
}
end,
},
}
-- You can configure highlights by doing something like:
-- vim.cmd.hi 'Comment gui=none'
vim.cmd.colorscheme 'catppuccin-mocha'
end,
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.