nix-config/home/vim/after/plugin/mappings/telescope.vim

17 lines
393 B
VimL
Raw Normal View History

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