summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins/todo-comments.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/lua/plugins/todo-comments.lua b/lua/plugins/todo-comments.lua
index 44bbcda..b439495 100644
--- a/lua/plugins/todo-comments.lua
+++ b/lua/plugins/todo-comments.lua
@@ -60,5 +60,12 @@ return {
pattern = [[\b(KEYWORDS):]], -- ripgrep regex
-- pattern = [[\b(KEYWORDS)\b]], -- match without the extra colon. You'll likely get false positives
},
- }
+ },
+ config = function(_, opts)
+ local todo = require('todo-comments')
+ todo.setup(opts)
+
+ -- TodoTrouble is also available
+ vim.keymap.set('n', '<leader>tt', '<CMD>TodoTelescope<CR>', { desc = '[t]odo: [t]oggle (list)' })
+ end
}