loctvl842 / monokai-pro.nvim

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

Feature Request: option to add a marker on the 80th column #119

Closed joelgrimberg closed 4 months ago

joelgrimberg commented 4 months ago

In VsCode I am used to have a 'marker' on the 80th column. Would be great to have this option in Monokai ;)

Since I am new in the (Lazy)Vim, at this moment I do not know how to fix this myself.

loctvl842 commented 4 months ago

Is that like this one:

image

If so, you just need to set colorcolumn=80

joelgrimberg commented 4 months ago

thanx for the reply! so my question is, where should I set this and is this stylable? (like making the line red) afaik the monokai theme overrides all default styling (like styling that is set in .vimrc)

joelgrimberg commented 4 months ago

ah, got it already: vim.opt.colorcolumn = "79" in lazy.lua

now I only have to figure out how to apply the color.

loctvl842 commented 4 months ago

You can change the color of colorcolumn by using override provided by my plugin:

  {
    "loctvl842/monokai-pro.nvim",
      override = function(c)
        return {
          ColorColumn = { bg = c.editor.background },
        }
        end
    }

I set the color column to have the same color with my editor's background. Because I don't like using it, you can change it to any color you like. You can reference my config

joelgrimberg commented 4 months ago

Thanx @loctvl842, problem solved!