[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",
---@type snacks.Config
opts = {
matcher = {
-- Enable frecensy for matchers
frecency = true,
},
picker = {
smart = {
-- Remove the "recent" picker so we don't get things from other directories.
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,
},
},
},
},