Squashed 'etc/nvim/' content from commit 6da6d4f
git-subtree-dir: etc/nvim git-subtree-split: 6da6d4ffb9395ebf9be5d2bfb578782cdd6de362
This commit is contained in:
22
lua/plugin/todo-comments.lua
Normal file
22
lua/plugin/todo-comments.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
---@module 'lazy'
|
||||
---@type LazySpec
|
||||
return { {
|
||||
'folke/todo-comments.nvim', -- for highlighting TODO and stuff comments
|
||||
event = 'VeryLazy',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
---@module 'todo-comments'
|
||||
---@type TodoOptions
|
||||
opts = {
|
||||
signs = false,
|
||||
colors = {
|
||||
hint = { "Comment" }
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local todo = require 'todo-comments'
|
||||
todo.setup(opts)
|
||||
|
||||
Map('n', '<leader>st', '<cmd>TodoTelescope keywords=TODO,FIX,BUG,WARN<cr>',
|
||||
{ desc = '[S]earch [T]odos]' })
|
||||
end,
|
||||
} }
|
||||
Reference in New Issue
Block a user