summaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config/nvim/lua/tobyvin/plugins/todo-comments.lua
blob: ba7362d2948a60e3fd03ce5c73299725bf671955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local M = {
	"folke/todo-comments.nvim",
	cmd = { "TodoTrouble", "TodoTelescope" },
	event = "BufReadPost",
	config = true,
}

function M.init()
	vim.keymap.set("n", "]t", function()
		require("todo-comments").jump_next()
	end, { desc = "next todo" })

	vim.keymap.set("n", "[t", function()
		require("todo-comments").jump_prev()
	end, { desc = "previous todo" })
end

return M