Fixed todo-comment highlighting
This commit is contained in:
parent
ad8a5caa99
commit
3c152c044c
|
@ -28,12 +28,19 @@ return {
|
||||||
|
|
||||||
require("todo-comments").setup({
|
require("todo-comments").setup({
|
||||||
keywords = {
|
keywords = {
|
||||||
|
-- FIX: Fix
|
||||||
FIX = { icon = diagnostic.bug },
|
FIX = { icon = diagnostic.bug },
|
||||||
|
-- TODO: Todo
|
||||||
TODO = { icon = diagnostic.todo },
|
TODO = { icon = diagnostic.todo },
|
||||||
|
-- HACK: Hack
|
||||||
HACK = { icon = diagnostic.hack },
|
HACK = { icon = diagnostic.hack },
|
||||||
|
-- WARN: Warn
|
||||||
WARN = { icon = diagnostic.warning },
|
WARN = { icon = diagnostic.warning },
|
||||||
|
-- PERF: Perf
|
||||||
PERF = { icon = diagnostic.performance },
|
PERF = { icon = diagnostic.performance },
|
||||||
|
-- NOTE: Note
|
||||||
NOTE = { icon = diagnostic.note },
|
NOTE = { icon = diagnostic.note },
|
||||||
|
-- TEST: Test
|
||||||
TEST = { icon = diagnostic.test },
|
TEST = { icon = diagnostic.test },
|
||||||
},
|
},
|
||||||
highlight = {
|
highlight = {
|
||||||
|
@ -46,12 +53,12 @@ return {
|
||||||
pattern = [[\b(KEYWORDS)(\(.*\))?:]],
|
pattern = [[\b(KEYWORDS)(\(.*\))?:]],
|
||||||
},
|
},
|
||||||
colors = {
|
colors = {
|
||||||
error = { "DiagnosticError", "ErrorMsg", "#DC2626" },
|
error = { "TodoCommentError" },
|
||||||
warning = { "DiagnosticWarn", "WarningMsg", "#FBBF24" },
|
warning = { "TodoCommentWarning" },
|
||||||
info = { "Todo", "#2563EB" },
|
info = { "TodoCommentInfo" },
|
||||||
hint = { "DiagnosticHint", "#10B981" },
|
hint = { "TodoCommentHint" },
|
||||||
default = { "Identifier", "#7C3AED" },
|
test = { "TodoCommentTest" },
|
||||||
test = { "Identifier", "#FF00FF" },
|
default = { "TodoCommentDefault" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -34,6 +34,12 @@ return {
|
||||||
LspReferenceText = { fg = palette.dark0, bg = palette.neutral_purple },
|
LspReferenceText = { fg = palette.dark0, bg = palette.neutral_purple },
|
||||||
LspReferenceRead = { link = "LspReferenceText" },
|
LspReferenceRead = { link = "LspReferenceText" },
|
||||||
LspReferenceWrite = { 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 },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user