mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
* I did an overhall for all codes and added typing by Lua-language-server and tests. It also works on CI. * Now it searches files on the workspace completely asynchronously. It does not block your text input. (Fix #106) Make count = 1 when you open a file you've never opened (Fix #107)
22 lines
600 B
Lua
22 lines
600 B
Lua
local frecency = require "frecency"
|
|
|
|
return require("telescope").register_extension {
|
|
setup = frecency.setup,
|
|
health = function()
|
|
if vim.F.npcall(require, "sqlite") then
|
|
vim.health.ok "sqlite.lua installed."
|
|
else
|
|
vim.health.error "sqlite.lua is required for telescope-frecency.nvim to work."
|
|
end
|
|
if vim.F.npcall(require, "nvim-web-devicons") then
|
|
vim.health.ok "nvim-web-devicons installed."
|
|
else
|
|
vim.health.info "nvim-web-devicons is not installed."
|
|
end
|
|
end,
|
|
exports = {
|
|
frecency = frecency.start,
|
|
complete = frecency.complete,
|
|
},
|
|
}
|