return { "nvim-telescope/telescope.nvim", tag = "0.1.5", dependencies = { "nvim-lua/plenary.nvim", }, config = function() require("telescope").setup({ defaults = { layout_strategy = "vertical" }, }) local builtin = require("telescope.builtin") vim.keymap.set("n", "tf", builtin.find_files, { desc = "Find files" }) vim.keymap.set("n", "", builtin.git_files, { desc = "Find git files" }) vim.keymap.set("n", "tw", function() local word = vim.fn.expand("") builtin.grep_string({ search = word }) end, { desc = "Search files with " }) vim.keymap.set("n", "tW", function() local word = vim.fn.expand("") builtin.grep_string({ search = word }) end, { desc = "Search files with " }) vim.keymap.set("n", "tg", function() builtin.grep_string({ search = vim.fn.input("Grep > ") }) end, { desc = "Search files with grep" }) vim.keymap.set("n", "th", builtin.help_tags, { desc = "Search help tags" }) end, }