Replies: 1 comment 7 replies
-
require("catppuccin").setup {
custom_highlights = function(colors)
local highlights = {}
local spell_options = { style = {"underline"}, fg = colors.red }
local spell_groups = {"SpellBad", "SpellCap", "SpellLocal", "SpellRare"}
for _, v in ipairs(spell_groups) do
highlights[v] = spell_options
end
return highlights
end
} SpellBad Word that is not recognized by the spellchecker. |spell|
Combined with the highlighting used otherwise.
*hl-SpellCap*
SpellCap Word that should start with a capital. |spell|
Combined with the highlighting used otherwise.
*hl-SpellLocal*
SpellLocal Word that is recognized by the spellchecker as one that is
used in another region. |spell|
Combined with the highlighting used otherwise.
*hl-SpellRare*
SpellRare Word that is recognized by the spellchecker as one that is
hardly ever used. |spell|
Combined with the highlighting used otherwise. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently misspelled words are underlined in the same color as the text, I would like them to be underlined in red, how can that be customized?
thanks
Beta Was this translation helpful? Give feedback.
All reactions