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:
parent
5e3bd82f8b
commit
7fec5f870a
4 changed files with 18 additions and 24 deletions
|
|
@ -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
|
||||
16
home/vim/after/plugin/mappings/telescope.vim
Normal file
16
home/vim/after/plugin/mappings/telescope.vim
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue