From b71c749fb6e550a0f6ec3b03bf6b46d2ce5f8712 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 10 Feb 2024 20:59:24 -0600 Subject: feat: add todo keybinds, forgot --- lua/plugins/todo-comments.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lua/plugins') 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', 'tt', 'TodoTelescope', { desc = '[t]odo: [t]oggle (list)' }) + end } -- cgit v1.2.3-70-g09d2