Grep with arguments within telescope

This commit is contained in:
Marcelo Jacobus 2024-11-18 12:48:55 -03:00
parent f49ff03773
commit 587307ca09

View file

@ -1,6 +1,7 @@
-- lua/plugins/telescope.lua -- lua/plugins/telescope.lua
-- https://www.lazyvim.org/extras/editor/telescope -- https://www.lazyvim.org/extras/editor/telescope
return { return {
{
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
opts = function(_, opts) opts = function(_, opts)
opts.keys = opts.keys or {} opts.keys = opts.keys or {}
@ -10,4 +11,16 @@ return {
}) })
end end
end, end,
},
{
"nvim-telescope/telescope-live-grep-args.nvim",
dependencies = { "nvim-telescope/telescope.nvim" },
config = function()
require("telescope").load_extension("live_grep_args")
vim.keymap.set("n", "<leader>sg", function()
require("telescope").extensions.live_grep_args.live_grep_args()
end, { desc = "Live Grep with Args" })
end,
},
} }