feat(nvim): add Telescope plugin for live grep with args

This commit is contained in:
Stefan Imhoff
2023-02-26 12:17:39 +01:00
parent a331d3b455
commit b5aa502d6a
3 changed files with 20 additions and 0 deletions

View File

@@ -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" },

View File

@@ -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,
},
}

View File

@@ -6,6 +6,7 @@ return {
{ "<C-p>", "<cmd>Telescope find_files hidden=true<cr>", desc = "Find Files (hidden)" },
{ "<C-t>", "<cmd>Telescope<cr>", desc = "Telescope" },
{ "<M-p>", "<cmd>Telescope find_files<cr>", desc = "Find Files" },
{ "<leader>sg", "<cmd>Telescope live_grep_args<cr>", desc = "Live Grep" },
{ "<leader>tr", "<cmd>Telescope resume<cr>", desc = "Telescope" },
{ "<leader>tu", "<cmd>Telescope undo<cr>", desc = "Undo Tree" },
},