From 67a4bc03ac81be48911de51337e1065cfe96425b Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 24 Apr 2025 20:34:48 +0300 Subject: Replaced telescope and trouble with snacks picker --- .config/nvim/lua/plugins/todo-comments.lua | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to '.config/nvim/lua/plugins/todo-comments.lua') 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 = { - { 'st', 'TodoTelescope keywords=TODO,FIX', desc = '[S]earch [T]odos' }, - { 'lt', 'TodoTrouble', desc = '[L]ist [T]odos' }, + { + 'st', + function() + Snacks.picker.todo_comments({ + layout = 'telescope', + keywords = { 'TODO', 'FIX', 'FIXME', 'BUG', 'ISSUE', 'OPTIMIZE' }, + }) + end, + desc = '[S]earch [T]odos', + }, + { + 'sn', + function() + Snacks.picker.todo_comments({ layout = 'telescope' }) + end, + desc = '[S]earch [N]otes', + }, }, config = function() require('todo-comments').setup({ -- cgit v1.3.1