summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/todo-comments.lua
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-04-24 20:34:48 +0300
committerKyren223 <Kyren223@proton.me>2025-04-24 20:34:48 +0300
commit67a4bc03ac81be48911de51337e1065cfe96425b (patch)
treee6f3378f5a0b2cbd59bf391a1d3a834877d45b85 /.config/nvim/lua/plugins/todo-comments.lua
parent1ccaffed4d0c6aac8528f6ef9e583f91c772c36c (diff)
Replaced telescope and trouble with snacks picker
Diffstat (limited to '.config/nvim/lua/plugins/todo-comments.lua')
-rw-r--r--.config/nvim/lua/plugins/todo-comments.lua19
1 files changed, 17 insertions, 2 deletions
diff --git a/.config/nvim/lua/plugins/todo-comments.lua b/.config/nvim/lua/plugins/todo-comments.lua
index 799afd8..b19ad05 100644
--- a/.config/nvim/lua/plugins/todo-comments.lua
+++ b/.config/nvim/lua/plugins/todo-comments.lua
@@ -13,8 +13,23 @@ return {
dependencies = { 'nvim-lua/plenary.nvim' },
event = 'VeryLazy',
keys = {
- { '<leader>st', '<cmd>TodoTelescope keywords=TODO,FIX<cr>', desc = '[S]earch [T]odos' },
- { '<leader>lt', '<cmd>TodoTrouble<cr>', desc = '[L]ist [T]odos' },
+ {
+ '<leader>st',
+ function()
+ Snacks.picker.todo_comments({
+ layout = 'telescope',
+ keywords = { 'TODO', 'FIX', 'FIXME', 'BUG', 'ISSUE', 'OPTIMIZE' },
+ })
+ end,
+ desc = '[S]earch [T]odos',
+ },
+ {
+ '<leader>sn',
+ function()
+ Snacks.picker.todo_comments({ layout = 'telescope' })
+ end,
+ desc = '[S]earch [N]otes',
+ },
},
config = function()
require('todo-comments').setup({