craftzdog / solarized-osaka.nvim

🏯 A clean, dark Neovim theme written in Lua, with support for lsp, treesitter and lots of plugins.
Apache License 2.0
650 stars 29 forks source link

feature: Single color selection #23

Closed jblyberg closed 6 months ago

jblyberg commented 6 months ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

Selection highlighting is hard to read.

Describe the solution you'd like

I find that selected text is too jumbled with all the different colors. Ideally, selected text would work like other themes where it's a single color, semi-transparent with the original highlight colors coming through.

Describe alternatives you've considered

I'm sure there is a way to overwrite those colors, but I'm not familiar enough with how theme colors work in nvim.

Additional context

No response

craftzdog commented 6 months ago

Use on_colors option

jblyberg commented 6 months ago

Got it.

For anyone looking for a solution to this, here's what I did:

  {
    "craftzdog/solarized-osaka.nvim",
    config = function()
      require("solarized-osaka").setup({
        transparent = true,
        on_highlights = function(highlights, colors)
          highlights.Visual = { bg = colors.base03, reverse = false }
        end,
      })
    end,
  },