The problem is that with console version of nvim, I get an error:
E475: Invalid argument: Channel doesn't exist
Replacing the channel number from 1 to 0 prevents the error, but then nvim-gtk does not receive it. I can't find any nvim API to detect if a channel is open, so is there a way to detect that either we're running nvim-gtk or that the channel 1 is available? Thanks!
I have the following snippet in my
init.vim
:The problem is that with console version of
nvim
, I get an error:Replacing the channel number from
1
to0
prevents the error, but thennvim-gtk
does not receive it. I can't find any nvim API to detect if a channel is open, so is there a way to detect that either we're runningnvim-gtk
or that the channel1
is available? Thanks!