class DeniteHandlers(object): def __init__(self, vim: Nvim) -> None: self._rplugin = Rplugin(vim) @vim.function('_denite_init', sync=True) # type: ignore def init_channel(self, args: Args) -> None: self._rplugin.init_channel(args) @vim.rpc_export('_denite_start', sync=True) # type: ignore def start(self, args: Args) -> None: self._rplugin.start(args) @vim.rpc_export('_denite_do_action', sync=True) # type: ignore def do_action(self, args: Args) -> typing.Any: return self._rplugin.do_action(args) @vim.rpc_export('_denite_do_targets', sync=True) # type: ignore def do_targets(self, args: Args) -> typing.Any: return self._rplugin.do_targets(args) @vim.rpc_export('_denite_do_map', sync=True) # type: ignore def do_map(self, args: Args) -> typing.Any: return self._rplugin.do_map(args) @vim.rpc_export('_denite_do_async_map', sync=False) # type: ignore def do_async_map(self, args: Args) -> typing.Any: return self._rplugin.do_map(args)
class DeniteHandlers(object): def __init__(self, vim): self._rplugin = Rplugin(vim) @vim.function('_denite_init', sync=True) def init_channel(self, args): self._rplugin.init_channel(args) @vim.rpc_export('_denite_start', sync=True) def start(self, args): self._rplugin.start(args) @vim.rpc_export('_denite_do_action', sync=True) def take_action(self, args): return self._rplugin.take_action(args)