Skip to content

Overriding "Mode" colors (and weird gray thing) #2801

Closed Answered by TheBabu
TheBabu asked this question in Q&A
Discussion options

You must be logged in to vote

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 in M.ui in the chadrc.lua file. And to remove the weird gray spacer bar, I rewrote the mode function from https://github.com/NvChad/ui/blob/v2.5/lua/nvchad/stl/default.lua and also added it to my config.

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

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@siduck
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by TheBabu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants