Skip to content

Commit

Permalink
neovim: Fetch the latest telescope-frecency.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
yutkat committed Jun 10, 2023
1 parent 76cf65f commit c8ae7ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"diffview.nvim": { "branch": "main", "commit": "77cd1e12e5acff62b7be9027325a6c3d9521dcdb" },
"dressing.nvim": { "branch": "master", "commit": "f16d7586fcdd8b2e3850d0abb7e46f944125cc25" },
"eyeliner.nvim": { "branch": "main", "commit": "fa3a0986cb072fe2ab29ef79e022514d2533f0db" },
"fidget.nvim": { "branch": "main", "commit": "c93c07c219bcf78c26b144027fcfd20cd23e55bd" },
"fidget.nvim": { "branch": "main", "commit": "f1c375ba68839eaa4a65efdf2aa078c0da0548fe" },
"flit.nvim": { "branch": "main", "commit": "f60e4b3d49bb5a5e97cfffe66f2e671eb422078e" },
"friendly-snippets": { "branch": "main", "commit": "b71d1ddc30a10ce0474156f7ee93bc9006d0cd74" },
"git-conflict.nvim": { "branch": "main", "commit": "3c89812a83ac749b8851a473863958325a1cd57c" },
Expand Down
7 changes: 3 additions & 4 deletions .config/nvim/lua/rc/pluginconfig/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -288,17 +288,16 @@ end

telescope_builtin.my_mru = function(opts)
local get_mru = function(opts2)
local res = pcall(requiref, "telescope._extensions.frecency")
local res = pcall(requiref, "frecency")
if not res then
return vim.tbl_filter(function(val)
return 0 ~= vim.fn.filereadable(val)
end, vim.v.oldfiles)
else
local db_client = require("telescope._extensions.frecency.db_client")
db_client.init()
local db_client = require("frecency.db")
-- too slow
-- local tbl = db_client.get_file_scores(opts, vim.fn.getcwd())
local tbl = db_client.get_file_scores(opts2)
local tbl = db_client.get_files(opts2)
local get_filename_table = function(tbl2)
local res2 = {}
for _, v in pairs(tbl2) do
Expand Down

0 comments on commit c8ae7ae

Please sign in to comment.