From 69b4ac5ca7d39b55cf5d556a2aece2437adae241 Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 3 Feb 2026 18:06:36 +0100 Subject: [PATCH] Set spelling formatting in colour overrides as well --- .config/nvim/lua/plugin/gruvbox.lua | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.config/nvim/lua/plugin/gruvbox.lua b/.config/nvim/lua/plugin/gruvbox.lua index 3e50a06..ad85306 100644 --- a/.config/nvim/lua/plugin/gruvbox.lua +++ b/.config/nvim/lua/plugin/gruvbox.lua @@ -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 -})