diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index aae9da2..1f23483 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -88,6 +88,7 @@ "telescope-fzy-native.nvim": { "branch": "master", "commit": "282f069504515eec762ab6d6c89903377252bf5b" }, "telescope-github.nvim": { "branch": "master", "commit": "ee95c509901c3357679e9f2f9eaac3561c811736" }, "telescope-heading.nvim": { "branch": "main", "commit": "b1969c1b1b3de52c45b4c440e0784c33b5814954" }, + "telescope-live-grep-args.nvim": { "branch": "master", "commit": "7de3baef1ec4fb77f7a8195fe87bebd513244b6a" }, "telescope-node-modules.nvim": { "branch": "main", "commit": "b846d33ff5763176dc14fc74c30941a2067c82fd" }, "telescope-undo.nvim": { "branch": "main", "commit": "03ff45fab0c4adad4d252e25b5b194e22caf5b4f" }, "telescope.nvim": { "branch": "master", "commit": "a486ac3e8fb2198f3636da1927ed57a28836fbd8" }, diff --git a/nvim/lua/plugins/telescope-live-grep-args.lua b/nvim/lua/plugins/telescope-live-grep-args.lua new file mode 100644 index 0000000..1f7bd9c --- /dev/null +++ b/nvim/lua/plugins/telescope-live-grep-args.lua @@ -0,0 +1,18 @@ +-- Telescope extension to search with arguments +-- https://github.com/nvim-telescope/telescope-live-grep-args.nvim +return { + "telescope.nvim", + dependencies = { + "nvim-telescope/telescope-live-grep-args.nvim", + opts = { + extensions = { + live_grep_args = { + auto_quoting = true, + }, + }, + }, + config = function() + require("telescope").load_extension("live_grep_args") + end, + }, +} diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua index 9681cd0..9f9efb4 100644 --- a/nvim/lua/plugins/telescope.lua +++ b/nvim/lua/plugins/telescope.lua @@ -6,6 +6,7 @@ return { { "", "Telescope find_files hidden=true", desc = "Find Files (hidden)" }, { "", "Telescope", desc = "Telescope" }, { "", "Telescope find_files", desc = "Find Files" }, + { "sg", "Telescope live_grep_args", desc = "Live Grep" }, { "tr", "Telescope resume", desc = "Telescope" }, { "tu", "Telescope undo", desc = "Undo Tree" }, },