From 93e4cefa906481a5719d92c7ce46aada72967a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Flo=C3=9Fmann?= Date: Mon, 2 Feb 2026 10:32:09 +0100 Subject: [PATCH] add Grg command --- lua/polish.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/polish.lua b/lua/polish.lua index 2fa6cc8..9f04b18 100644 --- a/lua/polish.lua +++ b/lua/polish.lua @@ -1,3 +1,11 @@ -- This will run last in the setup process. -- This is just pure lua so anything that doesn't -- fit in the normal config locations above can go here + +vim.api.nvim_create_user_command("Grg", function(opts) + -- print(table.concat({ "-g", opts.fargs[1] }, " ")) + require("telescope.builtin").live_grep { additional_args = { "-g", opts.fargs[1] } } +end, { + desc = "Add a glob-rule to the telescope live ripgrep", + nargs = 1, +})