neanias / everforest-nvim

A Lua port of the Everforest colour scheme
273 stars 18 forks source link

how to change currentword highlight #21

Closed Leiyi548 closed 8 months ago

Leiyi548 commented 8 months ago

Hello,I like you colorscheme,but i have some issuse how to change the currentword highlight. Default is bold,I want tokyonight style. image image

neanias commented 8 months ago

Hi, to clarify, would you just like it unstyled/no different to the underlying highlight?

Leiyi548 commented 8 months ago

Hi, to clarify, would you just like it unstyled/no different to the underlying highlight?

I want style like tokyonight

neanias commented 8 months ago

Ok, I think this would be similar to tokyonight:

require("everforest").setup({
  on_highlights = function(hl, palette)
    hl.CurrentWord = { fg = palette.none, bg = palette.bg_dim }
  end,
})
Leiyi548 commented 8 months ago

Ok, I think this would be similar to tokyonight:

require("everforest").setup({
  on_highlights = function(hl, palette)
    hl.CurrentWord = { fg = palette.none, bg = palette.bg_dim }
  end,
})

Perfect!