loctvl842 / monokai-pro.nvim

Monokai Pro theme for Neovim written in Lua, with multiple filters: Pro, Classic, Machine, Octagon, Ristretto, Spectrum
MIT License
441 stars 44 forks source link

colorcolumn isn't visible #14

Closed PlaiyTiziano closed 1 year ago

PlaiyTiziano commented 1 year ago

My colorcolumn seems to be invisible.

I've tried several things:

  1. Change the filter but no setting seems to make the colorcolumn visible.
  2. Set the colorcolumn manually by calling :set colorcolumn=80.

The colorcolumn is visible in any other theme so i'm guessing it has nothing to do with my terminal colors. My config for the monokai-pro theme is pretty much the default one

require("monokai-pro").setup({
    filter = "octagon",
    plugins = {
        bufferline = {
            underline_selected = false,
            underline_visible = false,
        },
    },
})

Versions:

loctvl842 commented 1 year ago

ah that is because I don't know why should we use colorcolumn. So I just make it have the same color with the background in order to make screen cleaner. Temporarily you can try this:

require("monokai-pro").setup({
    filter = "octagon",
    plugins = {
        bufferline = {
            underline_selected = false,
            underline_visible = false,
        },
    },
    override = function(c)
        ColorColumn = {bg = c.base.dimmed3}   
    end
})
PlaiyTiziano commented 1 year ago

The suggestion didn't seem to work for me, however I made the colorcolumn visible by executing the code below:

vim.api.nvim_set_hl(0, "ColorColumn", { ctermbg = 0, bg = "#161821" })