Skip to content

Commit da0aad9

Browse files
committed
Switch file finder from telescope to fff.nvim
Replace telescope find_files with fff.nvim for the <D-p> keybinding.
1 parent 73ae64c commit da0aad9

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

lazy-lock.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
1414
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
1515
"dropbar.nvim": { "branch": "master", "commit": "ce202248134e3949aac375fd66c28e5207785b10" },
16+
"fff.nvim": { "branch": "main", "commit": "e3f788f87b014f61e39cd916edc766d10e563d73" },
1617
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
1718
"git-rebase-auto-diff.nvim": { "branch": "main", "commit": "6fd2f5ba63828e5c4fd59bb1b75ef7525a5ce39f" },
1819
"gitlab.nvim": { "branch": "main", "commit": "e29909cd1064a7b53c3150bff49449a548dadf8d" },

lua/plugins/common.lua

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,4 +299,31 @@ return {
299299
},
300300
},
301301
},
302+
{
303+
'dmtrKovalenko/fff.nvim',
304+
build = function()
305+
require('fff.download').download_or_build_binary()
306+
end,
307+
-- https://github.com/dmtrKovalenko/fff.nvim?tab=readme-ov-file#configuration
308+
opts = {
309+
debug = {
310+
enabled = true,
311+
show_scores = true,
312+
},
313+
layout = {
314+
-- prompt_position = 'top',
315+
-- preview_position = 'top',
316+
},
317+
},
318+
lazy = false,
319+
keys = {
320+
{
321+
'<D-p>',
322+
function()
323+
require('fff').find_files()
324+
end,
325+
desc = 'FFFind files',
326+
},
327+
},
328+
},
302329
}

lua/plugins/telescope.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ return {
2626
{ '<leader>su', '<cmd>Telescope undo<cr>', desc = 'Undo' },
2727
-- personal preference
2828
{ '<C-S-f>', '<cmd>Telescope live_grep<cr>', desc = 'Find in Files (Grep)' },
29-
{ '<D-p>', '<cmd>Telescope find_files<cr>', desc = 'Find Files (root dir)' },
3029
},
3130
opts = {
3231
defaults = {

0 commit comments

Comments
 (0)