Compare commits
2 Commits
2784989570
...
3adcb18a5b
Author | SHA1 | Date | |
---|---|---|---|
3adcb18a5b | |||
ba4e6dc233 |
@ -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 = '*' })
|
||||||
|
@ -23,7 +23,7 @@ return {
|
|||||||
'folke/neodev.nvim',
|
'folke/neodev.nvim',
|
||||||
|
|
||||||
-- Snippet pluggins
|
-- Snippet pluggins
|
||||||
'L3MON4D3/LuaSnip',
|
{ 'L3MON4D3/LuaSnip', build = 'make install_jsregexp' },
|
||||||
'saadparwaiz1/cmp_luasnip',
|
'saadparwaiz1/cmp_luasnip',
|
||||||
|
|
||||||
-- Expose clangd extensions
|
-- Expose clangd extensions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user