Compare commits

...

2 Commits

Author SHA1 Message Date
3adcb18a5b Add :Rg[!] command
:Rg <STRING> grep for the string and fuzzy find the results, bang to
enable regex in search term
2024-04-06 15:39:43 +01:00
ba4e6dc233 Ensure LuaSnips dependencies are met 2024-04-06 15:39:30 +01:00
2 changed files with 12 additions and 1 deletions

View File

@ -83,3 +83,14 @@ end, {
-- TODO: :Chmod
-- 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 = '*' })

View File

@ -23,7 +23,7 @@ return {
'folke/neodev.nvim',
-- Snippet pluggins
'L3MON4D3/LuaSnip',
{ 'L3MON4D3/LuaSnip', build = 'make install_jsregexp' },
'saadparwaiz1/cmp_luasnip',
-- Expose clangd extensions