mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-28 02:54:31 +03:00
Update neovim
This commit is contained in:
parent
78a10b1219
commit
0c006ced5b
@ -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
|
Loading…
Reference in New Issue
Block a user