diff options
| author | eric.marin <maarin.eric@gmail.com> | 2025-03-05 22:25:17 +0100 |
|---|---|---|
| committer | eric.marin <maarin.eric@gmail.com> | 2025-03-05 22:26:26 +0100 |
| commit | 6d95f092e30737d49b650891e93de518498523a3 (patch) | |
| tree | 469db0917af455a1a354123f8d5ee27a228dae38 /nvim/lua/plugins/todo-comments.lua | |
| parent | 4de5a217c25fe83bb54063f8d842b78c9e6d7fb3 (diff) | |
| download | dotfiles-6d95f092e30737d49b650891e93de518498523a3.tar.gz dotfiles-6d95f092e30737d49b650891e93de518498523a3.zip | |
neorg
Diffstat (limited to 'nvim/lua/plugins/todo-comments.lua')
| -rw-r--r-- | nvim/lua/plugins/todo-comments.lua | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/nvim/lua/plugins/todo-comments.lua b/nvim/lua/plugins/todo-comments.lua index 85e8090..1ae4a83 100644 --- a/nvim/lua/plugins/todo-comments.lua +++ b/nvim/lua/plugins/todo-comments.lua @@ -1,32 +1,30 @@ -local config = function() - require("todo-comments").setup({ - keywords = { - FIX = { icon = "", color = "error", alt = { "FIXME", "BUG", "FIXIT", "ISSUE" } }, - TODO = { icon = "", color = "info" }, - HACK = { icon = "", color = "hack" }, - WARN = { icon = "", color = "warning", alt = { "WARNING", "XXX" } }, - PERF = { icon = "", color = "perf", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } }, - NOTE = { icon = "", color = "hint", alt = { "INFO" } }, - TEST = { icon = "", color = "test", alt = { "TESTING", "PASSED", "FAILED" } }, - }, - colors = { - error = { "DiagnosticError", "ErrorMsg", "#DC2626" }, - warning = { "DiagnosticWarn", "WarningMsg", "#FBBF24" }, - info = { "DiagnosticInfo", "#2563EB" }, - hint = { "DiagnosticHint", "#10B981" }, - test = { "Identifier", "#FF00FF" }, - hack = "#F5A97F", - perf = "#C6A0F6" - } - }) -end +local opts = { + keywords = { + FIX = { icon = "", color = "error", alt = { "FIXME", "BUG", "FIXIT", "ISSUE" } }, + TODO = { icon = "", color = "info" }, + HACK = { icon = "", color = "hack" }, + WARN = { icon = "", color = "warning", alt = { "WARNING", "XXX" } }, + PERF = { icon = "", color = "perf", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } }, + NOTE = { icon = "", color = "hint", alt = { "INFO" } }, + TEST = { icon = "", color = "test", alt = { "TESTING", "PASSED", "FAILED" } }, + }, + colors = { + error = "@text.title.1.markdown", + info = "DiagnosticInfo", + hack = "@text.title.2.markdown", + warning = "@text.title.3.markdown", + perf = "@text.title.4.markdown", + hint = "@text.title.5.markdown", + test = "@text.title.6.markdown", + } +} return { "folke/todo-comments.nvim", dependencies = { "nvim-lua/plenary.nvim" }, lazy = true, event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - config = config + opts = opts } -- FIX: ciao |
