mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 18:36:30 +00:00
feat(lua): vim.ui_attach to get ui events from lua
Co-authored-by: Famiu Haque <famiuhaque@protonmail.com>
This commit is contained in:
@@ -87,7 +87,7 @@ const char *describe_ns(NS ns_id)
|
||||
}
|
||||
|
||||
// Is the Namespace in use?
|
||||
static bool ns_initialized(uint32_t ns)
|
||||
bool ns_initialized(uint32_t ns)
|
||||
{
|
||||
if (ns < 1) {
|
||||
return false;
|
||||
|
@@ -223,6 +223,7 @@ void nvim_ui_attach(uint64_t channel_id, Integer width, Integer height, Dictiona
|
||||
ui->msg_set_pos = remote_ui_msg_set_pos;
|
||||
ui->event = remote_ui_event;
|
||||
ui->inspect = remote_ui_inspect;
|
||||
ui->win_viewport = remote_ui_win_viewport;
|
||||
|
||||
CLEAR_FIELD(ui->ui_ext);
|
||||
|
||||
|
@@ -100,7 +100,7 @@ void raw_line(Integer grid, Integer row, Integer startcol,
|
||||
FUNC_API_NOEXPORT FUNC_API_COMPOSITOR_IMPL;
|
||||
|
||||
void event(char *name, Array args)
|
||||
FUNC_API_NOEXPORT;
|
||||
FUNC_API_NOEXPORT FUNC_API_COMPOSITOR_IMPL;
|
||||
|
||||
void win_pos(Integer grid, Window win, Integer startrow,
|
||||
Integer startcol, Integer width, Integer height)
|
||||
@@ -121,7 +121,7 @@ void msg_set_pos(Integer grid, Integer row, Boolean scrolled, String sep_char)
|
||||
void win_viewport(Integer grid, Window win, Integer topline,
|
||||
Integer botline, Integer curline, Integer curcol,
|
||||
Integer line_count)
|
||||
FUNC_API_SINCE(7) FUNC_API_REMOTE_ONLY;
|
||||
FUNC_API_SINCE(7) FUNC_API_BRIDGE_IMPL;
|
||||
|
||||
void win_extmark(Integer grid, Window win, Integer ns_id, Integer mark_id,
|
||||
Integer row, Integer col)
|
||||
|
Reference in New Issue
Block a user