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

inlay hint background and foreground #87

Open fegyi001 opened 10 months ago

fegyi001 commented 10 months ago

The added style for inlay hints does not look good in my opinion with monokai pro. I modified it, so that the background is the default background and the foreground is a dimmed default value. This suits better for this really beautiful color scheme in my opinion.

I also altered the default background to match the official monokai pro background.

image
loctvl842 commented 10 months ago

I myself think yours look better, however, I just want to follow the original Monokai-pro colorscheme. Therefore, I just override it in the config. Thanks a lot.

      local monokai = require("monokai-pro")
      monokai.setup({
        override = function(c)
          return {
            LspInlayHint = { bg = c.editor.background, fg = c.editorInlayHint.foreground },
          }
        end,
      })

Also, matching the inlayhint background with the editor's background looks unappealing at cursorline.

editor background inlayhint's default background
image image