add live grep args

This commit is contained in:
Rahsheen Porter 2023-10-07 17:12:10 -04:00
parent 0e2a749cc1
commit 7e4a712aa9
1 changed files with 17 additions and 0 deletions

View File

@ -226,6 +226,7 @@ vim.api.nvim_create_autocmd("TextYankPost", {
pattern = "*",
})
local lga_actions = require("telescope-live-grep-args.actions")
-- [[ Configure Telescope ]]
-- See `:help telescope` and `:help telescope.setup()`
require("telescope").setup({
@ -237,6 +238,22 @@ require("telescope").setup({
},
},
},
extensions = {
live_grep_args = {
auto_quoting = true, -- enable/disable auto-quoting
-- define mappings, e.g.
mappings = { -- extend mappings
i = {
["<C-k>"] = lga_actions.quote_prompt(),
["<C-i>"] = lga_actions.quote_prompt({ postfix = " --iglob " }),
},
},
-- ... also accepts theme settings, for example:
-- theme = "dropdown", -- use dropdown theme
-- theme = { }, -- use own theme spec
-- layout_config = { mirror=true }, -- mirror preview pane
}
}
})
-- Enable telescope fzf native, if installed