2022-09-23 00:50:02 +00:00
|
|
|
local present, todo = pcall(require, "todo-comments")
|
|
|
|
|
|
|
|
if not present then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2023-01-30 21:13:34 +00:00
|
|
|
local M = {}
|
2022-09-23 00:50:02 +00:00
|
|
|
|
|
|
|
local config = {
|
2022-09-29 18:49:40 +00:00
|
|
|
keywords = {
|
2022-11-01 22:10:02 +00:00
|
|
|
["_TODO"] = {
|
|
|
|
color = "warning",
|
|
|
|
alt = {"TODO!"}, -- a set of other keywords that all map to this FIX keywords
|
|
|
|
},
|
|
|
|
LEARN = { color = "hint" },
|
|
|
|
WIP = { color = "default"},
|
2022-12-05 13:44:06 +00:00
|
|
|
NOTE = { alt = { "TIP", "INFO", "TRICK", "RELEASE"}},
|
|
|
|
DEBUG = {},
|
2023-08-06 12:15:51 +00:00
|
|
|
REVIEW = { color = "info" }
|
2022-09-29 18:49:40 +00:00
|
|
|
},
|
|
|
|
colors = {
|
2022-12-05 13:44:06 +00:00
|
|
|
-- info = {"#2563EB"},
|
|
|
|
info = {"#dddddd"},
|
2022-09-29 18:49:40 +00:00
|
|
|
hint = {"#10B981"},
|
|
|
|
default = {"#8C3AED" },
|
|
|
|
},
|
2022-11-01 22:10:02 +00:00
|
|
|
highlight = {
|
2022-11-08 23:17:51 +00:00
|
|
|
-- multiline = false,
|
2022-12-16 01:38:51 +00:00
|
|
|
after = "",
|
2022-11-01 22:10:02 +00:00
|
|
|
}
|
2022-09-23 00:50:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
M.setup = function()
|
|
|
|
todo.setup(config)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
return M
|