mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
30 lines
905 B
Lua
30 lines
905 B
Lua
return {
|
|
"folke/todo-comments.nvim",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
"folke/trouble.nvim",
|
|
},
|
|
opts = {},
|
|
config = function()
|
|
local todos = require("todo-comments")
|
|
|
|
todos.setup({
|
|
keywords = {
|
|
-- Adds the important keyword, I primarily use this in markdown
|
|
-- documents to be able to jump and color appropriately.
|
|
FIX = { alt = { "IMPORTANT" } },
|
|
},
|
|
})
|
|
|
|
vim.keymap.set("n", "<leader>tq", "<CMD>Trouble todo toggle<CR>", { desc = "[T]odo [Q]uick fix list." })
|
|
vim.keymap.set("n", "<leader><leader>t", "<CMD>TodoTelescope<CR>", { desc = "[T]odo telescope list." })
|
|
vim.keymap.set("n", "<leader>tl", "<CMD>TodoLocList<CR>", { desc = "[T]odo [L]ocation list." })
|
|
vim.keymap.set("n", "]t", function()
|
|
todos.jump_next()
|
|
end, { desc = "Next [T]odo" })
|
|
vim.keymap.set("n", "[t", function()
|
|
todos.jump_prev()
|
|
end, { desc = "Previous [T]odo" })
|
|
end,
|
|
}
|