mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(picker): use an sqlite3 database for frecency data when available
This commit is contained in:
parent
1481a90aff
commit
c43969dabd
4 changed files with 269 additions and 53 deletions
|
@ -46,7 +46,7 @@ function M.files(opts, filter)
|
|||
return function(cb)
|
||||
for file in oldfiles(filter, extra) do
|
||||
if file ~= current_file then
|
||||
cb({ file = file, text = file })
|
||||
cb({ file = file, text = file, recent = true })
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue