fix: added fff config

This commit is contained in:
2026-07-29 14:51:52 +00:00
parent 22a06955a2
commit 0146ea8052
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
vim.pack.add({ 'https://github.com/dmtrKovalenko/fff.nvim' })
vim.api.nvim_create_autocmd('PackChanged', {
callback = function(ev)
local name, kind = ev.data.spec.name, ev.data.kind
if name == 'fff.nvim' and (kind == 'install' or kind == 'update') then
if not ev.data.active then vim.cmd.packadd('fff.nvim') end
require('fff.download').download_or_build_binary()
end
end,
})
vim.g.fff = {
lazy_sync = true,
debug = { enabled = true, show_scores = true },
}
vim.keymap.set('n', 'ff', function() require('fff').live_grep() end, { desc = 'FFFind files' })