diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2024-02-10 20:59:24 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2024-02-10 20:59:24 -0600 |
commit | b71c749fb6e550a0f6ec3b03bf6b46d2ce5f8712 (patch) | |
tree | 40b3809a70255fd78a5c9cfe3533f118c2e5d41f /lua/plugins | |
parent | 81670818c4807542d902b3cf553857ae9d95246c (diff) |
feat: add todo keybinds, forgot
Diffstat (limited to 'lua/plugins')
-rw-r--r-- | lua/plugins/todo-comments.lua | 9 |
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 } |