[neovim] Snacks smart-picker config

This commit is contained in:
2025-05-09 10:31:27 -07:00
parent e2e32fb6cd
commit bedce7a93c
2 changed files with 11 additions and 4 deletions

View File

@@ -2,14 +2,20 @@ return {
"folke/snacks.nvim", "folke/snacks.nvim",
---@type snacks.Config ---@type snacks.Config
opts = { opts = {
matcher = {
-- Enable frecensy for matchers
frecency = true,
},
picker = { picker = {
smart = { smart = {
-- Remove the "recent" picker so we don't get things from other directories. -- Remove the "recent" picker so we don't get things from other directories.
multi = { "buffers", "files" }, multi = { "buffers", "files" },
matcher = {
-- sort even when the search string is empty
sort_empty = true,
-- Enable frecensy for matchers. This puts more common files near the top
frecency = true,
-- Make sure files in the current directory are prioritized
cwd_bonus = true,
-- Give more weight to files that are more recent
history_bonus = true,
},
}, },
}, },
}, },

View File

@@ -17,6 +17,7 @@
wget # LazyVim dep? wget # LazyVim dep?
sqlite # For Snacks sqlite # For Snacks
imagemagick # For image conversion/display imagemagick # For image conversion/display
vscode-langservers-extracted # For language servers (it wants this version of eslint for some reason)
]; ];
}; };