diff options
| author | Andreas Schneider <asn@cryptomilk.org> | 2023-04-23 15:28:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-23 10:28:31 -0300 |
| commit | df149bccb19a02c5c2b9fa6ec0716f0c0487feb0 (patch) | |
| tree | a8d111f3c4914195bc91ed071ba2a336058567e1 /lua | |
| parent | 487598d979868224aff92cf8818195c1a60e5dfe (diff) | |
| download | gruvbox-df149bccb19a02c5c2b9fa6ec0716f0c0487feb0.tar.gz gruvbox-df149bccb19a02c5c2b9fa6ec0716f0c0487feb0.tar.xz | |
fix(groups): Improve special comment keywords (#247)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/gruvbox/groups.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lua/gruvbox/groups.lua b/lua/gruvbox/groups.lua index e69b46d..1d22555 100644 --- a/lua/gruvbox/groups.lua +++ b/lua/gruvbox/groups.lua @@ -118,7 +118,9 @@ M.setup = function() lCursor = { link = "Cursor" }, Special = { link = "GruvboxOrange" }, Comment = { fg = colors.gray, italic = config.italic.comments }, - Todo = { fg = colors.fg0, bold = config.bold, italic = config.italic.comments }, + -- Todo anything that needs extra attention; mostly the + -- keywords TODO FIXME and XXX + Todo = { fg = colors.bg0, bg = colors.yellow, bold = config.bold, italic = config.italic.comments }, Done = { fg = colors.orange, bold = config.bold, italic = config.italic.comments }, Error = { fg = colors.red, bold = config.bold, reverse = config.inverse }, Statement = { link = "GruvboxRed" }, @@ -362,10 +364,14 @@ M.setup = function() ["@text.todo"] = { link = "Todo" }, -- @text.note ; info notes ["@text.note"] = { link = "SpecialComment" }, + -- @text.note.comment ; XXX in comments + ["@text.note.comment"] = { fg = colors.purple, bold = config.bold }, -- @text.warning ; warning notes ["@text.warning"] = { link = "WarningMsg" }, -- @text.danger ; danger/error notes ["@text.danger"] = { link = "ErrorMsg" }, + -- @text.danger.comment ; FIXME in comments + ["@text.danger.comment"] = { fg = colors.fg0, bg = colors.red, bold = config.bold }, -- @text.diff.add ; added text (for diff files) ["@text.diff.add"] = { link = "diffAdded" }, @@ -403,6 +409,7 @@ M.setup = function() -- Semantic token -- See `:help lsp-semantic-highlight` ["@lsp.type.class"] = { link = "@constructor" }, + ["@lsp.type.comment"] = {}, -- do not overwrite comments ["@lsp.type.decorator"] = { link = "@parameter" }, ["@lsp.type.enum"] = { link = "@type" }, ["@lsp.type.enumMember"] = { link = "@constant" }, |
