add Grg command
This commit is contained in:
parent
0816fd4a07
commit
93e4cefa90
1 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue