diff options
| author | Rudy Dellomas III <dther@dther.xyz> | 2024-04-21 20:25:40 +1000 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-04-29 08:36:44 -0600 |
| commit | 596ec20dd81fc4a48a528bfed9e241343ee03eaa (patch) | |
| tree | 9ece9e4212b1d770b33f8fd8317ff13d079f91eb /lua | |
| parent | 62ccfe59ae63858dc5c21039e907a9277134d171 (diff) | |
| download | vis-596ec20dd81fc4a48a528bfed9e241343ee03eaa.tar.gz vis-596ec20dd81fc4a48a528bfed9e241343ee03eaa.tar.xz | |
Emit an event (ui_draw) immediately before drawing the screen
This allows better control over styling, as well as potential for
entirely new UI elements implemented entirely using the Lua API.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/vis.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/vis.lua b/lua/vis.lua index 32fb2a1..5473f17 100644 --- a/lua/vis.lua +++ b/lua/vis.lua @@ -167,6 +167,7 @@ local events = { WIN_STATUS = "Event::WIN_STATUS", -- see @{win_status} TERM_CSI = "Event::TERM_CSI", -- see @{term_csi} PROCESS_RESPONSE = "Event::PROCESS_RESPONSE", -- see @{process_response} + UI_DRAW = "Event::UI_DRAW", -- see @{ui_draw} } events.file_close = function(...) events.emit(events.FILE_CLOSE, ...) end @@ -183,6 +184,7 @@ events.win_open = function(...) events.emit(events.WIN_OPEN, ...) end events.win_status = function(...) events.emit(events.WIN_STATUS, ...) end events.term_csi = function(...) events.emit(events.TERM_CSI, ...) end events.process_response = function(...) events.emit(events.PROCESS_RESPONSE, ...) end +events.ui_draw = function(...) events.emit(events.UI_DRAW, ...) end local handlers = {} |
