summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-13 01:24:53 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-13 01:24:53 +0200
commit972db6ecc34792e19f98e1b621f61394411dbe77 (patch)
treed52124825a53743847032eadaf65d133beba4780
parent0f7a594a3a516e549bc15e95bc8995d7cf6860c0 (diff)
Add support for sp
-rw-r--r--lua/no-clown-fiesta/highlights.lua2
-rw-r--r--lua/no-clown-fiesta/util.lua2
2 files changed, 3 insertions, 1 deletions
diff --git a/lua/no-clown-fiesta/highlights.lua b/lua/no-clown-fiesta/highlights.lua
index 5a63b36..39ab824 100644
--- a/lua/no-clown-fiesta/highlights.lua
+++ b/lua/no-clown-fiesta/highlights.lua
@@ -7,7 +7,7 @@ function M.highlight(palette, opts)
MsgArea = { fg = palette.fg, bg = palette.bg },
ModeMsg = { fg = palette.fg, bg = palette.bg },
MsgSeparator = { fg = palette.fg, bg = palette.bg },
- SpellBad = { sp = palette.red, style = "undercurl" },
+ SpellBad = { sp = palette.error_red, style = "undercurl" },
SpellCap = { fg = palette.yellow, style = "underline" },
SpellLocal = { fg = palette.green, style = "underline" },
SpellRare = { fg = palette.purple, style = "underline" },
diff --git a/lua/no-clown-fiesta/util.lua b/lua/no-clown-fiesta/util.lua
index dbac18a..4db151c 100644
--- a/lua/no-clown-fiesta/util.lua
+++ b/lua/no-clown-fiesta/util.lua
@@ -3,6 +3,7 @@ local M = {}
local function highlight(group, properties)
local bg = properties.bg == nil and "" or "guibg=" .. properties.bg
local fg = properties.fg == nil and "" or "guifg=" .. properties.fg
+ local sp = properties.sp == nil and "" or "guisp=" .. properties.sp
local style = properties.style == nil and "" or "gui=" .. properties.style
local cmd = table.concat({
@@ -10,6 +11,7 @@ local function highlight(group, properties)
group,
bg,
fg,
+ sp,
style,
}, " ")