nvim todo-comments
This commit is contained in:
+10
-9
@@ -527,21 +527,22 @@ require("lazy").setup({
|
|||||||
{ -- helplists
|
{ -- helplists
|
||||||
"folke/todo-comments.nvim",
|
"folke/todo-comments.nvim",
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
|
lazy = false,
|
||||||
opts = {
|
opts = {
|
||||||
signs = true, -- show icons in the signs column
|
signs = true, -- show icons in the signs column
|
||||||
sign_priority = 8, -- sign priority
|
sign_priority = 8, -- sign priority
|
||||||
-- keywords recognized as todo comments
|
|
||||||
keywords = {
|
keywords = {
|
||||||
ERROR = { icon = " ", color = "error" },
|
MAYBE = { icon = " " },
|
||||||
WIP = { icon = " ", color = "warning" },
|
PERF = { icon = " " },
|
||||||
TODO = { icon = " ", color = "warning" },
|
FIX = { icon = " ", color = "error", alt = { "BUG" } },
|
||||||
PERF = { icon = " ", color = "info" },
|
TODO = { icon = " ", color = "info" },
|
||||||
TEST = { icon = " ", color = "info" },
|
HACK = { icon = " ", color = "warning" },
|
||||||
MAYBE = { icon = " ", color = "default" },
|
WARN = { icon = " ", color = "warning" },
|
||||||
IDEA = { icon = " ", color = "hint" },
|
NOTE = { icon = " ", color = "hint" },
|
||||||
|
TEST = { icon = "⏲ ", color = "test" },
|
||||||
},
|
},
|
||||||
merge_keywords = false, -- when true, custom keywords will be merged with the defaults
|
merge_keywords = false, -- when true, custom keywords will be merged with the defaults
|
||||||
highlight = { keyword = "bg", pattern = [[<(KEYWORDS)\s*]] },
|
highlight = { keyword = "bg", pattern = [[.*<(KEYWORDS)\s*:]] },
|
||||||
search = { pattern = [[\b(KEYWORDS)\b]] },
|
search = { pattern = [[\b(KEYWORDS)\b]] },
|
||||||
colors = {
|
colors = {
|
||||||
error = { "#ba1a1a" },
|
error = { "#ba1a1a" },
|
||||||
|
|||||||
Reference in New Issue
Block a user