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

Switch colors when hovering over pairs because difficult to see #12

Closed Ces-D closed 1 year ago

Ces-D commented 1 year ago

Is there a way to switch the colors when hovering over bracket or parenthesis pairs. The dark color for the cursor is difficult to follow when the brighter color is at the end of the pair. Currently using "pro" .

loctvl842 commented 1 year ago

Try this

require("monokai-pro").setup({
    override = function(c)
        return {
            MatchParen = {
              -- bg = hp.blend(c.base.blue, 0.2),
              -- bg = hp.lighten(c.base.white, -55),
              fg = c.base.yellow,
              bold = true,
              underline = true,
            }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
        }
    end,
})

Actually, I personally don't like the current highlight for MatchParen. I need more feedbacks.

Ces-D commented 1 year ago

Thank you for the snippet. In my opinion it looks way better and more importantly is easier to follow. The brighter color needs to be over the cursor since that's where the eye is drawn, otherwise I think I am at the end of the pair.

loctvl842 commented 1 year ago

Thank you for the snippet. In my opinion it looks way better and more importantly is easier to follow. The brighter color needs to be over the cursor since that's where the eye is drawn, otherwise I think I am at the end of the pair.

Ok, I'll fix it as default. You don't need to override it again. Thanks for your feedback