local telescope = require("telescope") local builtin = require("telescope.builtin") local trouble = require("trouble.providers.telescope") telescope.setup({ defaults = { mappings = { i = { [""] = trouble.open_with_trouble, }, n = { [""] = trouble.open_with_trouble, }, }, }, }) vim.keymap.set("n", "pf", builtin.find_files, { desc = "Fuzzy find files in cwd" }) vim.keymap.set("n", "pr", builtin.oldfiles, { desc = "Fuzzy find recent files" }) vim.keymap.set("n", "", builtin.git_files, { desc = "Fuzzy find files in git in cwd" }) vim.keymap.set("n", "ps", function() builtin.grep_string({ search = vim.fn.input("Grep > ") }) end, { desc = "Find string under cursor in cwd" })