summaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2024-02-10 20:59:24 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2024-02-10 20:59:24 -0600
commitb71c749fb6e550a0f6ec3b03bf6b46d2ce5f8712 (patch)
tree40b3809a70255fd78a5c9cfe3533f118c2e5d41f /lua/plugins
parent81670818c4807542d902b3cf553857ae9d95246c (diff)
feat: add todo keybinds, forgot
Diffstat (limited to 'lua/plugins')
-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
}