neanias / everforest-nvim

A Lua port of the Everforest colour scheme
233 stars 15 forks source link

StatusLineNC highlight causes infinite ^ in status line #9

Closed zackerydev closed 1 year ago

zackerydev commented 1 year ago

If I don't supply my own highlight group for hl.StatusLineNC I get this:

CleanShot 2023-08-29 at 09 36 33@2x

Anytime I use a fuzzy find or open a split.

    {
        "neanias/everforest-nvim",
        version = false,
        lazy = false,
        priority = 1000, -- make sure to load this before all the other start plugins
        -- Optional; default configuration will be used if setup isn't called.
        config = function()
            require("everforest").setup({
                -- Your config here
                background = "soft",
                transparent_background_level = 2,
                italics = true,
                on_highlights = function(hl, palette)
                    hl.StatusLineNC = { fg = palette.none, bg = palette.none, sp = palette.red }
                end,
            })
        end,
    },

I'm not sure why this is happening (on latest Neovim Nightly) but it looks like its related to the highlight groups being the same. https://github.com/nordtheme/vim/issues/37

Thought I would report in case other have issues with the workaround above.

neanias commented 1 year ago

Thanks for raising this! It turns out I hadn't accurately ported the Vim version to Lua as the StatusLineNC foreground values should differ for transparent_background_level == 2 configurations. All fixed now!