You've already forked dotfiles
configurations and using newer built-in functionality in the 0.12.x versions of Neovim. Further work is needed for treesitter updates, cleanup of the conversion work and testing to verify old functionality isn't lessened to get the benefits of a cleaner config and vastly faster load times.
6 lines
407 B
Lua
6 lines
407 B
Lua
vim.api.nvim_create_user_command('FindAndReplace', function(opts)
|
|
-- Update each quickfix location using substitute, update the files to save changes, close the opened buffers and close the quickfix window
|
|
-- TODO: Does not close the buffers opened through changes
|
|
vim.api.nvim_command(string.format('cfdo s/%s/%s/gc', opts.fargs[1], opts.fargs[2]) .. '| update | cclose')
|
|
end, { nargs = '*' })
|