return { "nvim-telescope/telescope.nvim", branch = "0.1.x", dependencies = { "nvim-lua/plenary.nvim", { "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, "nvim-tree/nvim-web-devicons", "folke/todo-comments.nvim", }, config = function() local telescope = require("telescope") local actions = require("telescope.actions") -- Update the import for trouble sources local trouble = require("trouble.sources.telescope") telescope.setup({ defaults = { path_display = { "smart" }, mappings = { i = { [""] = actions.move_selection_previous, [""] = actions.move_selection_next, [""] = actions.send_selected_to_qflist, }, }, }, }) telescope.load_extension("fzf") local keymap = vim.keymap keymap.set("n", "ff", "Telescope find_files", { desc = "Fuzzy find files in cwd" }) keymap.set("n", "fr", "Telescope oldfiles", { desc = "Fuzzy find recent files" }) keymap.set("n", "fs", "Telescope live_grep", { desc = "Find string in cwd" }) keymap.set("n", "fc", "Telescope grep_string", { desc = "Find string under cursor in cwd" }) keymap.set("n", "ft", "TodoTelescope", { desc = "Find todos" }) end, }