local telescope = require("telescope") local telescope_builtin = require("telescope.builtin") local wk = require("which-key") telescope.setup({ defaults = { mappings = { i = { [""] = "which_key", -- I want the normal readline mappings rather than scrolling [""] = 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") local keys = { { "f", group = "Fuzzy finder" }, { "fb", telescope_builtin.buffers, desc = "Open buffers" }, { "ff", telescope_builtin.git_files, desc = "Git tracked files" }, { "fF", telescope_builtin.find_files, desc = "Files" }, { "fg", telescope_builtin.live_grep, desc = "Grep string" }, { "fG", telescope_builtin.grep_string, desc = "Grep string under cursor" }, } wk.add(keys)