This is what I do:
- Open an interactive terminal from inside neovim, for example with
:terminal
comand - In that terminal instance, I run
nvim --server $NVIM --remote some/file
Once I have done that, the file will be opened in the parent nvim. However, it is very likely that this file will be opened in place of the terminal widow, with the terminal buffer becoming hidden. This is in line with what the :drop
command does.
I do not want this. I would like my terminal window to never become hidden in such scenario. For example, the new file could be opened in a split window.
Any suggestions?