mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +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
|
@ -94,9 +94,11 @@ function M.projects(opts, ctx)
|
|||
end
|
||||
end
|
||||
|
||||
for file in oldfiles(ctx.filter) do
|
||||
local dir = Snacks.git.get_root(file)
|
||||
add(dir)
|
||||
if opts.recent then
|
||||
for file in oldfiles(ctx.filter) do
|
||||
local dir = Snacks.git.get_root(file)
|
||||
add(dir)
|
||||
end
|
||||
end
|
||||
|
||||
---@async
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue