def nvim_request(self, nvim: object, sub: str, args: object) -> object:
"""Signal emitted on a request from neovim.
This is called on neovim's event loop, so modifications to GTK widgets
should be done through `GLib.idle_add()`.
After emission, should return an appropriate value expected by the
request.
:nvim: the `neovim.Nvim` instance.
:sub: the request name.
:args: the request arguments.
"""
if sub == 'Gui' and args[0] == 'Clipboard':
return self.update_clipboard(*args[1:])
评论列表
文章目录