You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
580 B
Lua
24 lines
580 B
Lua
-- Highlight todo, notes, etc in comments
|
|
return {
|
|
'folke/todo-comments.nvim',
|
|
event = 'VimEnter',
|
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
|
opts = { signs = false },
|
|
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,
|
|
}
|