File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,25 @@ def session(self):
86
86
"""Return the Session or SessionFilter for a Nvim instance."""
87
87
return self ._session
88
88
89
+ def ui_attach (self , width , height , rgb ):
90
+ """Register as a remote UI.
91
+
92
+ After this method is called, the client will receive redraw
93
+ notifications.
94
+ """
95
+ return self ._session .request ('ui_attach' , width , height , rgb )
96
+
97
+ def ui_detach (self ):
98
+ """Unregister as a remote UI."""
99
+ return self ._session .request ('ui_detach' )
100
+
101
+ def ui_try_resize (self , width , height ):
102
+ """Notify nvim that the client window has resized.
103
+
104
+ If possible, nvim will send a redraw request to resize.
105
+ """
106
+ return self ._session .request ('ui_try_resize' , width , height )
107
+
89
108
def subscribe (self , event ):
90
109
"""Subscribe to a Nvim event."""
91
110
return self ._session .request ('vim_subscribe' , event )
You can’t perform that action at this time.
0 commit comments