feat(nvim_open_term): support input callback in lua

This commit is contained in:
Björn Linse
2020-12-24 23:15:20 +01:00
parent 9086938f7b
commit 9e41e82481
4 changed files with 118 additions and 6 deletions

View File

@@ -42,6 +42,10 @@ typedef struct {
bool closed;
} StderrState;
typedef struct {
LuaRef cb;
} InternalState;
typedef struct {
Callback cb;
dict_T *self;
@@ -74,6 +78,7 @@ struct Channel {
Stream socket;
StdioPair stdio;
StderrState err;
InternalState internal;
} stream;
bool is_rpc;