Set spelling formatting in colour overrides as well

This commit is contained in:
2026-02-03 18:06:36 +01:00
parent 3eeff04c9b
commit 69b4ac5ca7

View File

@@ -13,18 +13,11 @@ colour.setup({
['@string.special.symbol'] = { link = '@string' },
['@string.special.path'] = { link = '@string' },
['@string.special.url'] = { link = '@string' },
['SpellBad'] = { sp = colour.palette.gray, undercurl = true },
['SpellCap'] = { sp = colour.palette.gray, undercurl = true },
['SpellRare'] = { sp = colour.palette.gray, undercurl = true },
['SpellLocal'] = { sp = colour.palette.gray, undercurl = true }
}
})
vim.cmd.colorscheme('gruvbox')
_G.userdat.palette = colour.palette
-- non-essential configuration should be put in here
Autocmd('VimEnter', {
callback = function()
-- spell highlight must be grey
for _, spell in pairs { 'SpellBad', 'SpellCap', 'SpellRare', 'SpellLocal' } do
vim.api.nvim_set_hl(0, spell,
{ fg = nil, bg = nil, sp = _G.userdat.palette.gray, undercurl = true })
end
end
})