mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
26 lines
612 B
Lua
26 lines
612 B
Lua
|
local M = {}
|
||
|
if pcode.todo_comment then
|
||
|
M = {
|
||
|
"folke/todo-comments.nvim",
|
||
|
event = { "BufRead", "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,
|
||
|
}
|
||
|
end
|
||
|
return M
|