mirror of
https://github.com/josean-dev/dev-environment-files.git
synced 2025-01-09 17:51:20 +01:00
22 lines
531 B
Lua
22 lines
531 B
Lua
|
return {
|
||
|
"folke/todo-comments.nvim",
|
||
|
event = { "BufReadPre", "BufNewFile" },
|
||
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||
|
config = function()
|
||
|
local todo_comments = require("todo-comments")
|
||
|
|
||
|
-- set keymaps
|
||
|
local keymap = vim.keymap -- for conciseness
|
||
|
|
||
|
keymap.set("n", "]t", function()
|
||
|
todo_comments.jump_next()
|
||
|
end, { desc = "Next todo comment" })
|
||
|
|
||
|
keymap.set("n", "[t", function()
|
||
|
todo_comments.jump_prev()
|
||
|
end, { desc = "Previous todo comment" })
|
||
|
|
||
|
todo_comments.setup()
|
||
|
end,
|
||
|
}
|