diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-10-13 01:24:53 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-10-13 01:24:53 +0200 |
commit | 972db6ecc34792e19f98e1b621f61394411dbe77 (patch) | |
tree | d52124825a53743847032eadaf65d133beba4780 /lua/no-clown-fiesta | |
parent | 0f7a594a3a516e549bc15e95bc8995d7cf6860c0 (diff) |
Add support for sp
Diffstat (limited to 'lua/no-clown-fiesta')
-rw-r--r-- | lua/no-clown-fiesta/highlights.lua | 2 | ||||
-rw-r--r-- | lua/no-clown-fiesta/util.lua | 2 |
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, }, " ") |