From 3c152c044cd6fee2364ccfd608113b7afd092c6a Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Thu, 18 Apr 2024 04:16:15 +0200 Subject: [PATCH] Fixed todo-comment highlighting --- .../nvim/lua/plugins/todo-comments.lua | 19 +++++++++++++------ nvim/dot-config/nvim/lua/themes/gruvbox.lua | 6 ++++++ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/nvim/dot-config/nvim/lua/plugins/todo-comments.lua b/nvim/dot-config/nvim/lua/plugins/todo-comments.lua index ce7bc5d..5fdeb4a 100644 --- a/nvim/dot-config/nvim/lua/plugins/todo-comments.lua +++ b/nvim/dot-config/nvim/lua/plugins/todo-comments.lua @@ -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, diff --git a/nvim/dot-config/nvim/lua/themes/gruvbox.lua b/nvim/dot-config/nvim/lua/themes/gruvbox.lua index 912fa67..e87e866 100644 --- a/nvim/dot-config/nvim/lua/themes/gruvbox.lua +++ b/nvim/dot-config/nvim/lua/themes/gruvbox.lua @@ -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 }, }, })