[neovim] Snacks smart-picker config
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
wget # LazyVim dep?
|
||||
sqlite # For Snacks
|
||||
imagemagick # For image conversion/display
|
||||
vscode-langservers-extracted # For language servers (it wants this version of eslint for some reason)
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user