nvim/init.post: add color overrides

As something keeps resetting these, we'll just reset them right back
This commit is contained in:
Paul Stemmet 2022-09-10 07:57:29 +00:00
parent c7ba09929a
commit b263e62f3a
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
1 changed files with 21 additions and 1 deletions

View File

@ -162,7 +162,27 @@ local function psoxizsh_post_config(plugs)
keys.Global.N.Leader.ReloadConfig { action = function() plugs:reload() end }
g.one_allow_italics = 1
cmd('highlight Comment term=italic cterm=italic gui=italic')
local color_highlights_override = function()
local hl = require 'psoxizsh.util.highlight'
-- For nvim-cmp, for whatever reason these are overwritten if set in the
-- config function
hl.CmpItemAbbrDeprecated { strikethrough = true }
hl.CmpItemAbbrMatch { bold = true }
hl.CmpItemAbbrMatchFuzzy { bold = true }
hl.CmpItemMenu { italic = true }
-- Disable stupid spelling highlights (the 90s were a weird time)
hl.SpellCap:clear()
hl.SpellLocal:clear()
hl.SpellRare:clear()
end
color_highlights_override()
au.PsoxColorSchemeOverrides {
{ 'ColorScheme', '*', color_highlights_override }
}
end
local function psoxizsh_late_config(_)