mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
feat(picker.projects): allow disabling projects from recent files
This commit is contained in:
parent
9f03de4fda
commit
c2dedb647f
2 changed files with 7 additions and 3 deletions
|
@ -610,12 +610,14 @@ M.picker_preview = {
|
|||
---@field dev? string|string[] top-level directories containing multiple projects (sub-folders that contains a root pattern)
|
||||
---@field projects? string[] list of project directories
|
||||
---@field patterns? string[] patterns to detect project root directories
|
||||
---@field recent? boolean include project directories of recent files
|
||||
M.projects = {
|
||||
finder = "recent_projects",
|
||||
format = "file",
|
||||
dev = { "~/dev", "~/projects" },
|
||||
confirm = "load_session",
|
||||
patterns = { ".git", "_darcs", ".hg", ".bzr", ".svn", "package.json", "Makefile" },
|
||||
recent = true,
|
||||
win = {
|
||||
preview = { minimal = true },
|
||||
input = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue