Skip to content

Help #27

Answered by rebelot
nxmxsxs asked this question in Q&A
Help #27
May 8, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

this works, but the safest/easiest thing would be to make mode_color accessible to the whole statusline like this:

    local StatusLines = {

        hl = function()
            if conditions.is_active() then
                return {
                    fg = utils.get_highlight("StatusLine").fg,
                    bg = utils.get_highlight("StatusLine").bg,
                }
            else
                return {
                    fg = utils.get_highlight("StatusLineNC").fg,
                    bg = utils.get_highlight("StatusLineNC").bg,
                }
            end
        end,

        static = {
            mode_color = function()
                local mode_colors = {
      …

Replies: 1 comment 1 reply

Comment options

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

Answer selected by nxmxsxs
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