1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-27 15:53:31 +03:00

fix remote rpc commands

This commit is contained in:
George Harker 2023-11-15 12:09:47 -08:00
parent 6ebb94b97a
commit 5943d1b901
2 changed files with 5 additions and 0 deletions

View File

@ -177,6 +177,7 @@ extension NvimView {
) )
} }
) )
.andThen(self.api.subscribe(event: NvimView.rpcEventName))
} }
).wait() ).wait()
} }

View File

@ -185,6 +185,10 @@ public final class NvimView: NSView, NSUserInterfaceValidations, NSTextInputClie
case let .notification(method, params): case let .notification(method, params):
self?.log.debug("NOTIFICATION: \(method): \(params)") self?.log.debug("NOTIFICATION: \(method): \(params)")
if method == NvimView.rpcEventName {
self?.eventsSubject.onNext(.rpcEvent(params))
}
if method == "redraw" { if method == "redraw" {
self?.renderData(params) self?.renderData(params)
} else if method == "autocommand" { } else if method == "autocommand" {