return { "FabianWirth/search.nvim", dependencies = { "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim", }, version = "0.1.6", config = function() require('telescope').setup({}) local search = require('search') local builtin = require('telescope.builtin') search.setup({ mappings = { -- optional: configure the mappings for switching tabs (will be set in normal and insert mode(!)) next = '', prev = '' }, append_tabs = { -- append_tabs will add the provided tabs to the default ones { 'Commits', -- or name = "Commits" builtin.git_commits, -- or tele_func = require('telescope.builtin').git_commits available = function() -- optional return vim.fn.isdirectory('.git') == 1 end }, }, }) vim.keymap.set('n', 'pf', search.open, {}) vim.keymap.set('n', 'pws', function() local word = vim.fn.expand("") builtin.grep_string({ search = word }) end) vim.keymap.set('n', 'pWs', function() local word = vim.fn.expand("") builtin.grep_string({ search = word }) end) vim.keymap.set('n', 'ps', function() builtin.grep_string({ search = vim.fn.input("Grep > ") }) end) vim.keymap.set('n', 'vh', builtin.help_tags, {}) end }