Compare commits
1 Commits
helpgrep
...
3adcb18a5b
| Author | SHA1 | Date | |
|---|---|---|---|
| 3adcb18a5b |
@@ -83,3 +83,14 @@ end, {
|
|||||||
-- TODO: :Chmod
|
-- TODO: :Chmod
|
||||||
|
|
||||||
-- TODO: :Mkdir
|
-- TODO: :Mkdir
|
||||||
|
|
||||||
|
-- :Rg <STRING> grep for the string and fuzzy find the results, bang to enable
|
||||||
|
-- regex in search term
|
||||||
|
vim.api.nvim_create_user_command('Rg', function(opts)
|
||||||
|
local grep_opts = { search = opts.args }
|
||||||
|
if opts.bang then
|
||||||
|
grep_opts['use_regex'] = true
|
||||||
|
end
|
||||||
|
print(vim.inspect(grep_opts))
|
||||||
|
-- require('telescope.builtin').grep_string(grep_opts)
|
||||||
|
end, { bang = true, nargs = '*' })
|
||||||
|
|||||||
Reference in New Issue
Block a user