Skip to content

Commit c35ee75

Browse files
committed
feat!: Replace smart picker with dedicated pickers
1 parent e0f9177 commit c35ee75

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/vnext/plugins/snacks.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ return {
1515
---@type snacks.dashboard.Item[]
1616
-- stylua: ignore start
1717
keys = {
18-
{ icon = "", key = "f", desc = "Find File", action = ":lua Snacks.picker.smart({filter = {cwd = true}, layout = 'default'})" },
18+
{ icon = "", key = "f", desc = "Find File", action = ":lua Snacks.picker.files({filter = {cwd = true}, layout = 'default'})" },
1919
{ icon = "", key = "n", desc = "New File", action = ":ene | startinsert" },
2020
{ icon = "", key = "s", desc = "Find Text", action = ":lua Snacks.picker.grep({layout = 'default'})" },
2121
{ icon = "", key = "b", desc = "File browser", action = function() require("yazi").yazi(nil, vim.fn.getcwd()) end},
@@ -82,7 +82,9 @@ return {
8282
{ "#", function() Snacks.words.jump(-vim.v.count1) end, desc = "Prev Reference" },
8383
{ "<leader>ss", function() Snacks.picker.grep() end, desc = "Strings" },
8484
{ "<leader>sh", function() Snacks.picker.help() end, desc = "Help" },
85-
{ "<leader>ff", function() Snacks.picker.smart({filter = {cwd = true}}) end, desc = "Smart find" },
85+
{ "<leader>ff", function() Snacks.picker.files({filter = {cwd = true}}) end, desc = "Find" },
86+
{ "<leader>fr", function() Snacks.picker.recent({filter = {cwd = true} }) end, desc = "Recent" },
87+
{ "<leader>bb", function() Snacks.picker.buffers() end, desc = "Buffers" },
8688
{ "<leader>sl", function() Snacks.picker.lines() end, desc = "Buffer Lines" },
8789
{ "<leader>si", function() Snacks.picker.icons() end, desc = "Icons" },
8890
{ "<leader>sL", function() Snacks.picker.lazy() end, desc = "LazySpec" },

0 commit comments

Comments
 (0)