diff --git a/init.lua b/init.lua index 32da8b1..1a65037 100644 --- a/init.lua +++ b/init.lua @@ -582,8 +582,6 @@ require('lazy').setup { end, }, - -- Highlight todo, notes, etc in comments - { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, { -- Collection of various small independent plugins/modules 'echasnovski/mini.nvim', diff --git a/lua/custom/plugins/todo-comments.lua b/lua/custom/plugins/todo-comments.lua new file mode 100644 index 0000000..97c9cc9 --- /dev/null +++ b/lua/custom/plugins/todo-comments.lua @@ -0,0 +1,12 @@ +-- Highlight todo, notes, etc in comments +return { + 'folke/todo-comments.nvim', + event = 'VimEnter', + dependencies = { 'nvim-lua/plenary.nvim' }, + opts = { signs = false }, + config = function () + require('todo-comments').setup() + + vim.keymap.set('n', 'st', 'TodoTelescope', { desc = 'Open all todos' }) + end, +}