mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
46 lines
815 B
Lua
46 lines
815 B
Lua
return {
|
|
"folke/todo-comments.nvim",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
"folke/trouble.nvim",
|
|
},
|
|
opts = {
|
|
keywords = {
|
|
-- Adds the important keyword, I primarily use this in markdown
|
|
-- documents to be able to jump and color appropriately.
|
|
FIX = { alt = { "IMPORTANT" } },
|
|
},
|
|
},
|
|
keys = {
|
|
{
|
|
"<leader>tq",
|
|
"<CMD>Trouble todo toggle<CR>",
|
|
desc = "Todo quick fix list.",
|
|
},
|
|
{
|
|
"<leader><leader>t",
|
|
"<CMD>TodoTelescope<CR>",
|
|
desc = "Todo telescope list.",
|
|
},
|
|
{
|
|
"<leader>tl",
|
|
"<CMD>TodoLocList<CR>",
|
|
desc = "Todo location list.",
|
|
},
|
|
{
|
|
"]t",
|
|
function()
|
|
require("todo-comments").jump_next()
|
|
end,
|
|
desc = "Next todo.",
|
|
},
|
|
{
|
|
"[t",
|
|
function()
|
|
require("todo-comments").jump_prev()
|
|
end,
|
|
desc = "Previous todo.",
|
|
},
|
|
},
|
|
}
|