From 50e1420ee4e371f487c02ec01d2059e7018edcc1 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Wed, 14 May 2025 14:11:45 +0200 Subject: [PATCH] Specify buffers and files as sources for smart picker, removing recent files (this should solve the issue with entries outside of cwd hierarchy shows up) --- nvim/lua/plugs/snacks.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/plugs/snacks.lua b/nvim/lua/plugs/snacks.lua index aaafa3c..79365dc 100644 --- a/nvim/lua/plugs/snacks.lua +++ b/nvim/lua/plugs/snacks.lua @@ -64,7 +64,7 @@ return { { "z", function() Snacks.zen() end, }, - { "to", function() Snacks.picker.smart() end, }, + { "to", function() Snacks.picker.smart({ multi = { "buffers", "files" } }) end, }, { "ta", function() Snacks.picker.grep() end, }, { "tg", function() Snacks.picker.git_log_file() end, }, { "ts", function() Snacks.picker.lsp_workspace_symbols() end, },