feat(lua): vim.ui_attach to get ui events from lua

Co-authored-by: Famiu Haque <famiuhaque@protonmail.com>
This commit is contained in:
bfredl
2022-06-30 13:26:31 +06:00
parent 0903702634
commit f31db30975
15 changed files with 334 additions and 22 deletions

View File

@@ -69,6 +69,11 @@ struct ui_t {
void (*inspect)(UI *ui, Dictionary *info);
};
typedef struct ui_event_callback {
LuaRef cb;
bool ext_widgets[kUIGlobalCount];
} UIEventCallback;
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "ui.h.generated.h"