home: vim: replace 'fzf' with 'telescope'

I like the fact that it uses built-in buffers to preview files.

It also has more inertia behind it, tighter integrations in the
ecosystem.
This commit is contained in:
Bruno BELANYI 2022-03-07 13:05:28 +01:00
parent 5e3bd82f8b
commit 7fec5f870a
4 changed files with 18 additions and 24 deletions

View file

@ -1,13 +0,0 @@
lua << EOF
local wk = require("which-key")
local keys = {
f = {
name = "Fuzzy finder",
b = { "<cmd>Buffers<CR>", "Open buffers" },
f = { "<cmd>GFiles<CR>", "Git tracked files" },
},
}
wk.register(keys, { prefix = "<leader>" })
EOF

View file

@ -0,0 +1,16 @@
lua << EOF
local wk = require("which-key")
local telescope_builtin = require("telescope.builtin")
local keys = {
f = {
name = "Fuzzy finder",
b = { telescope_builtin.buffers, "Open buffers" },
f = { telescope_builtin.git_files, "Git tracked files" },
F = { telescope_builtin.find_files, "Files" },
},
}
wk.register(keys, { prefix = "<leader>" })
EOF