2022-03-31 00:13:30 +00:00
|
|
|
local status_ok, todo_comments = pcall(require, "todo-comments")
|
|
|
|
if not status_ok then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
todo_comments.setup {}
|
2023-08-27 16:34:58 +00:00
|
|
|
|
2023-09-04 10:05:13 +00:00
|
|
|
local nmap = require("opdavies.keymap").nmap
|
2023-08-27 16:34:58 +00:00
|
|
|
|
2023-09-04 10:05:13 +00:00
|
|
|
nmap {
|
|
|
|
"[t",
|
|
|
|
function()
|
|
|
|
todo_comments.jump_prev()
|
|
|
|
end,
|
|
|
|
{ desc = "Previous todo comment" },
|
|
|
|
}
|
|
|
|
nmap {
|
|
|
|
"]t",
|
|
|
|
function()
|
|
|
|
todo_comments.jump_next()
|
|
|
|
end,
|
|
|
|
{ desc = "Next todo comment" },
|
|
|
|
}
|
2023-08-27 16:34:58 +00:00
|
|
|
|
|
|
|
nmap { "<leader>tt", "<cmd>TodoTelescope<cr>" }
|
|
|
|
nmap { "<leader>tq", "<cmd>TodoQuickFix<cr>" }
|