local status_ok, telescope = pcall(require, "telescope") if not status_ok then return end local actions = require("telescope.actions") telescope.setup({ defaults = { file_ignore_patterns = { ".git/", "node_modules" }, }, mappings = { i = { [""] = actions.cycle_history_next, [""] = actions.cycle_history_prev, [""] = actions.move_selection_next, [""] = actions.move_selection_previous, }, }, extensions = { repo = { list = { fd_opts = { "--no-ignore-vcs", }, search_dirs = { "~/projects", "~/repos", "~/workspace", }, }, }, }, }) telescope.load_extension("repo") local keymap = vim.keymap.set local opts = { noremap = true, silent = true } keymap("n", "ff", "Telescope find_files", opts) keymap("n", "fg", "Telescope live_grep", opts) keymap("n", "fb", "Telescope buffers", opts) keymap("n", "fh", "Telescope help_tags", opts) keymap("n", "fr", "Telescope repo list", opts)