1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 02:54:31 +03:00

Update neovim

This commit is contained in:
Tae Won Ha 2018-03-18 09:36:59 +01:00
parent 78a10b1219
commit 0c006ced5b
2 changed files with 31 additions and 1 deletions

View File

@ -2222,6 +2222,36 @@ public extension NvimApi {
return .success(result)
}
public func listUis(
checkBlocked: Bool = true
) -> NvimApi.Response<NvimApi.Value> {
if checkBlocked {
guard let blocked = self.getMode().value?["blocking"]?.boolValue else {
return .failure(NvimApi.Error.blocked)
}
if blocked {
return .failure(NvimApi.Error.blocked)
}
}
let params: [NvimApi.Value] = [
]
let response = self.rpc(method: "nvim_list_uis", params: params, expectsReturnValue: true)
guard let value = response.value else {
return .failure(response.error!)
}
guard let result = (Optional(value)) else {
return .failure(NvimApi.Error.conversion(type: NvimApi.Value.self))
}
return .success(result)
}
public func winGetBuf(
window: NvimApi.Window,
checkBlocked: Bool = true

@ -1 +1 @@
Subproject commit cc064c056c1c4f938c0f5f235b639faf858e17ea
Subproject commit 5861af83d99af6695f8177df99eabcdb7b898808