Add TODO-comments plugin
This commit is contained in:
parent
9cc1cc99cb
commit
8b4cda3834
2 changed files with 20 additions and 0 deletions
8
lua/custom/plugins/todo.lua
Normal file
8
lua/custom/plugins/todo.lua
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
return {
|
||||||
|
"folke/todo-comments.nvim",
|
||||||
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
|
config = function()
|
||||||
|
require "custom/todo"
|
||||||
|
end,
|
||||||
|
}
|
12
lua/custom/todo.lua
Normal file
12
lua/custom/todo.lua
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
local todo_comments = require("todo-comments")
|
||||||
|
local keymap = vim.keymap
|
||||||
|
|
||||||
|
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(opts)
|
Loading…
Reference in a new issue