Add lazy and plugins dir
This commit is contained in:
parent
1dacc4c2d3
commit
a467ba4a69
25 changed files with 1393 additions and 0 deletions
23
lua/rakshit/plugins/todo-comments.lua
Normal file
23
lua/rakshit/plugins/todo-comments.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
-- 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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue