Fixed todo-comment highlighting

This commit is contained in:
Dreaded_X 2024-04-18 04:16:15 +02:00
parent ad8a5caa99
commit 3c152c044c
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4
2 changed files with 19 additions and 6 deletions

View File

@ -28,12 +28,19 @@ return {
require("todo-comments").setup({
keywords = {
-- FIX: Fix
FIX = { icon = diagnostic.bug },
-- TODO: Todo
TODO = { icon = diagnostic.todo },
-- HACK: Hack
HACK = { icon = diagnostic.hack },
-- WARN: Warn
WARN = { icon = diagnostic.warning },
-- PERF: Perf
PERF = { icon = diagnostic.performance },
-- NOTE: Note
NOTE = { icon = diagnostic.note },
-- TEST: Test
TEST = { icon = diagnostic.test },
},
highlight = {
@ -46,12 +53,12 @@ return {
pattern = [[\b(KEYWORDS)(\(.*\))?:]],
},
colors = {
error = { "DiagnosticError", "ErrorMsg", "#DC2626" },
warning = { "DiagnosticWarn", "WarningMsg", "#FBBF24" },
info = { "Todo", "#2563EB" },
hint = { "DiagnosticHint", "#10B981" },
default = { "Identifier", "#7C3AED" },
test = { "Identifier", "#FF00FF" },
error = { "TodoCommentError" },
warning = { "TodoCommentWarning" },
info = { "TodoCommentInfo" },
hint = { "TodoCommentHint" },
test = { "TodoCommentTest" },
default = { "TodoCommentDefault" },
},
})
end,

View File

@ -34,6 +34,12 @@ return {
LspReferenceText = { fg = palette.dark0, bg = palette.neutral_purple },
LspReferenceRead = { link = "LspReferenceText" },
LspReferenceWrite = { link = "LspReferenceText" },
TodoCommentError = { fg = palette.bright_red },
TodoCommentWarning = { fg = palette.bright_yellow },
TodoCommentInfo = { fg = palette.light1 },
TodoCommentHint = { fg = palette.bright_aqua },
TodoCommentTest = { fg = palette.bright_purple },
TodoCommentDefault = { fg = palette.bright_blue },
},
})