I was trying the nvim->tmux setup. I used vim-slime and send the code to a REPL in the next tmux pane. But it always send an extra closing “]”.
I have the same issue in VSCode. I usually use Emacs so I haven’t put a lot of effort into fixing it, but my suspicion was that it was OhMyREPL autocompleting the brackets as they were “typed” into the REPL.
It should send the code using bracket paste mode, bracketed paste mode.
Thank you guys. It works now