Add todo plugin for highlights & telescope integration
This commit is contained in:
parent
153b9a0843
commit
02432384f4
18
lua/plugins/todo.lua
Normal file
18
lua/plugins/todo.lua
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
return {
|
||||||
|
'folke/todo-comments.nvim',
|
||||||
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||||
|
config = function()
|
||||||
|
require('todo-comments').setup({
|
||||||
|
signs = false,
|
||||||
|
highlight = {
|
||||||
|
before = '', -- Don't highlight before the match
|
||||||
|
keyword = 'fg', -- Only highlight the foreground
|
||||||
|
after = '', -- Don't highlight after the match
|
||||||
|
},
|
||||||
|
colors = {
|
||||||
|
info = { '#489dff' },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
vim.keymap.set('n', '<leader>gt', ':TodoTelescope<CR>', { remap = false })
|
||||||
|
end
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user