nix-config/home/vim/plugin/settings/telescope.vim
Bruno BELANYI 0af000e52e home: vim: telescope: add 'which-key' mapping
This opens a little preview window with different mappings for
telescope.
2022-03-11 14:11:07 +01:00

27 lines
592 B
VimL

lua << EOF
local telescope = require("telescope")
telescope.setup({
defaults = {
mappings = {
i = {
["<C-h>"] = "which_key",
-- I want the normal readline mappings rather than scrolling
["<C-u>"] = false,
}
}
},
extensions = {
fzf = {
fuzzy = true,
override_generic_sorter = true,
override_file_sorter = true,
case_mode = "smart_case",
},
},
})
telescope.load_extension("fzf")
telescope.load_extension("lsp_handlers")
EOF