diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index d40f9779..f5a3a9af 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -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 = { + [""] = lga_actions.quote_prompt(), + [""] = 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