return { "nvim-telescope/telescope.nvim", cmd = "Telescope", version = false, dependencies = { { "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, { "nvim-lua/plenary.nvim" }, }, extensions = { fzf = { fuzzy = true, -- false will only do exact matching override_generic_sorter = true, -- override the generic sorter override_file_sorter = true, -- override the file sorter case_mode = "smart_case", -- or "ignore_case" or "respect_case" } }, config = function() local actions = require("telescope.actions") require("telescope").setup { defaults = { mappings = { i = { [""] = actions.close }, }, } } end, keys = { { "", "Telescope find_files", desc = "Find files" }, { "p", function() require("telescope.builtin").live_grep({ no_ignore = true }) end, desc = "Live Grep" }, -- Search almost everything (except .git folder) { "fa", function() require("telescope.builtin").find_files({ follow = true, no_ignore = true, hidden = true, file_ignore_patterns = { '.git' } }) end, desc = "Find all files" }, -- Search everything { "fl", function() require("telescope.builtin").find_files({ follow = true, no_ignore = true, hidden = true }) end, desc = "Find all files" }, { "fb", "Telescope buffers", desc = "Find buffer" }, { "fc", "Telescope git_commits", desc = "Find commits" }, }, }