-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
which theme are you using |
Beta Was this translation helpful? Give feedback.
-
I am using my own custom base46 theme: I am using the default statusline theme with block seperators: |
Beta Was this translation helpful? Give feedback.
-
override the statusline for this, or make your grey color darker. Your theme looks like a mess cuz you dont seem to follow our base46 guidelines and many colors are so light |
Beta Was this translation helpful? Give feedback.
-
How would I go about overriding the statusline? Is there a direct variable that I can override? |
Beta Was this translation helpful? Give feedback.
-
For those confused on how to do what I wanted to do: To change the "Mode" colors one needs to use the M.ui = {
---@diagnostic disable-next-line
theme = "neodark",
statusline = {
separator_style = "block",
modules = {
mode = function()
if not utils.is_activewin() then
return ""
end
local modes = utils.modes
local m = vim.api.nvim_get_mode().mode
local current_mode = "%#St_" .. modes[m][2] .. "Mode# " .. modes[m][1]
local mode_sep1 = "%#St_" .. modes[m][2] .. "ModeSep#" .. sep_r
return current_mode .. mode_sep1
end,
...SNIP...
hl_override = {
St_NormalMode = { bg = "green" },
St_NormalModeSep = { fg = "green" },
St_InsertMode = { bg = "blue" },
St_InsertModeSep = { fg = "blue" },
St_VisualMode = { bg = "purple" },
St_VisualModeSep = { fg = "purple" },
} |
Beta Was this translation helpful? Give feedback.
For those confused on how to do what I wanted to do:
To change the "Mode" colors one needs to use the
hl_override
option inM.ui
in thechadrc.lua
file. And to remove the weird gray spacer bar, I rewrote themode
function from https://github.com/NvChad/ui/blob/v2.5/lua/nvchad/stl/default.lua and also added it to my config.