Add todo plugin for highlights & telescope integration

This commit is contained in:
Kenneth Benzie 2024-03-03 19:46:43 +00:00
parent 153b9a0843
commit 02432384f4

18
lua/plugins/todo.lua Normal file
View 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
}