So you'll need to apply a substitution command :s
:h :s
.
First you need to define the range: either %
if you want that applied to all the lines in the buffer or '<,'>
to apply to the lines which are visually selected. Assuming this is the first case your command will start with :%s/
Now the pattern: here the simplest solution is to say "I want to replace every closing parenthesis with some text". So :%s/)/
no need for a regex you only match a regular )
character.
Then we add the new text , {static: false})
note that as we replace the original )
we need to add it to the replacement text. So :%s/)/, {static: false})/
.
Note that you could also have changed you replacement text so that you reuse the matched text: :%s/)/, {static: false}&/
.
You probably also want to read :h pattern
EDIT As Ben pointed out in the comments, you actually want to apply the substitution on lines referenced in the quickfix list. To do so you will need to use :h :cdo
to apply the command on every referenced lines and you will need to remove the range information. So the final command should be:
:cdo s/)/, {static: false})/