2022-09-23 00:50:02 +00:00
|
|
|
local present, todo = pcall(require, "todo-comments")
|
|
|
|
|
|
|
|
if not present then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2023-08-09 02:01:11 +00:00
|
|
|
local colors = require("custom.themes.blob42").base_30
|
|
|
|
|
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 = {
|
2023-08-09 02:01:11 +00:00
|
|
|
TODO = { icon = "✓"},
|
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" },
|
2023-08-21 07:54:11 +00:00
|
|
|
WIP = { color = "default", alt = {"REFACT"}},
|
2022-12-05 13:44:06 +00:00
|
|
|
NOTE = { alt = { "TIP", "INFO", "TRICK", "RELEASE"}},
|
2023-08-21 07:54:11 +00:00
|
|
|
DEBUG = { alt = { "DBG", }, color = "debug" },
|
2023-08-06 12:15:51 +00:00
|
|
|
REVIEW = { color = "info" }
|
2022-09-29 18:49:40 +00:00
|
|
|
},
|
|
|
|
colors = {
|
2023-08-09 02:01:11 +00:00
|
|
|
hint = {colors.green},
|
|
|
|
info = {colors.blue},
|
|
|
|
default = {colors.nord_blue},
|
|
|
|
warning = {colors.orange},
|
2023-08-21 07:54:11 +00:00
|
|
|
error = { colors.red },
|
|
|
|
debug = { colors.purple }
|
2022-09-29 18:49:40 +00:00
|
|
|
},
|
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
|