Closed axieax closed 1 year ago
To give a small overview of what's happening, one-small-step-for-vimkind (osv) is spawing a embedded instance of neovim to exchange DAP messages, this is required as part of its good operation. The problem is that flatten.nvim seem to exit that instance immediatly. I haven't tested the code so it's just suppositions but I think if an embedded neovim is spawned within neovim without any argument file, flatten.vnim kills it basically. If I'm correct, any plugin using an embedded neovim instance will be unusable with flatten.nvim. Maybe ask them about this. Even if osv spawns an instance with a dummy file, it will be killed. I don't have a good solution right now, I suggest talking to flatten.nvim's creator for solutions.
EDIT: I have added a temporary workaround. It's very hacky so I still suggest talking to flatten's creator. It will basically unset $NVIM when spawning the embedded neovim which will not allow flatten.nvim to know it's embedded. Launch the osv server like this :lua require"osv".launch({port = 8086, flatten_nvim= true})
. Let me know if it works, I haven't tested it.
Thanks for the detailed explanation and temporary fix! I'll create an issue under flatten.nvim as well :))
Great, I'll make that ugly hack disappear once there is a better solution for it.
Issue should be resolved now on flatten.nvim's side. Currently it requires enabling the nest_if_no_args
config option, which isn't the default option yet.
Hi, I'm having trouble launching the server when I have another plugin flatten.nvim which connects to the nvim rpc server. Is there a solution to ensure both plugins work at the same time?