From 972db6ecc34792e19f98e1b621f61394411dbe77 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 13 Oct 2022 01:24:53 +0200 Subject: Add support for sp --- lua/no-clown-fiesta/highlights.lua | 2 +- lua/no-clown-fiesta/util.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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, }, " ") -- cgit v1.2.3-70-g09d2