willothy / flatten.nvim

Open files and command output from wezterm, kitty, and neovim terminals in your current neovim instance
https://luarocks.org/modules/willothy/flatten.nvim
MIT License
473 stars 13 forks source link

fix: defer closing guest to make rpcrequest work #102

Open lostl1ght opened 1 month ago

lostl1ght commented 1 month ago

Closes #101

Hey, @willothy!

So, I've solved it. The guest was quitting too fast thus rendering the channel invalid. Deferring the quit command allowed the vim.rpcrequest function to be used.

I've also increased sleep time to 10s as I proposed in #101 but I can remove this commit if you don't like it.