astronvim_config/lua/polish.lua

12 lines
429 B
Lua
Raw Normal View History

2025-06-30 13:45:29 +02:00
-- 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
2026-02-02 10:32:09 +01:00
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,
})