neanias / everforest-nvim

A Lua port of the Everforest colour scheme
233 stars 15 forks source link

Italic on strings!? #19

Closed rubensrbr closed 6 months ago

rubensrbr commented 7 months ago

Hi there,

First of all the theme is awesome! So, is just a basic question, is there a way to set italic only for strings? Something like gruvbox theme?

neanias commented 7 months ago

Hi, thanks for the feedback! In terms of setting italics for strings, you'd need to override the highlights for strings. The easiest way to do that would be in your setup:

-- If using Lazy, this `on_highlights` function can go in the `opts` table.
require("everforest").setup({
  on_highlights = function(hl, _)
    hl["@string"] = { link = "AquaItalic" } -- "@string" links to "Aqua" ultimately
  end,
})