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 2020-01-19 20:40:32 +01:00
parent ce1cdfbdda
commit b2ad7eb0b7
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
3 changed files with 51 additions and 20 deletions

View File

@ -1,5 +1,5 @@
// Auto generated for nvim v0.5.0-dev.
// See bin/generate_autocmds.py
// Auto generated for nvim v0.5.0-dev
// See bin/generate_autocmds.sh
enum NvimAutoCommandEvent: Int {
@ -24,12 +24,12 @@ enum NvimAutoCommandEvent: Int {
case bufwritepre = 18
case chaninfo = 19
case chanopen = 20
case cmdlinechanged = 21
case cmdlineenter = 22
case cmdlineleave = 23
case cmdundefined = 24
case cmdwinenter = 25
case cmdwinleave = 26
case cmdundefined = 21
case cmdwinenter = 22
case cmdwinleave = 23
case cmdlinechanged = 24
case cmdlineenter = 25
case cmdlineleave = 26
case colorscheme = 27
case colorschemepre = 28
case completechanged = 29
@ -79,8 +79,8 @@ enum NvimAutoCommandEvent: Int {
case shellfilterpost = 73
case signal = 74
case sourcecmd = 75
case sourcepre = 76
case sourcepost = 77
case sourcepost = 76
case sourcepre = 77
case spellfilemissing = 78
case stdinreadpost = 79
case stdinreadpre = 80
@ -110,7 +110,8 @@ enum NvimAutoCommandEvent: Int {
case vimresized = 104
case vimresume = 105
case vimsuspend = 106
case winenter = 107
case winleave = 108
case winnew = 109
case winclosed = 107
case winenter = 108
case winleave = 109
case winnew = 110
}

@ -1 +1 @@
Subproject commit 9f1ed7368419bf7c84556d74bf7f4f47a0c50481
Subproject commit 0098c8405a1d062a15452c20ef6af243b7d9d0be

View File

@ -824,7 +824,7 @@ extension RxNeovimApi {
func bufAddHighlight(
buffer: RxNeovimApi.Buffer,
ns_id: Int,
src_id: Int,
hl_group: String,
line: Int,
col_start: Int,
@ -834,7 +834,7 @@ extension RxNeovimApi {
let params: [RxNeovimApi.Value] = [
.int(Int64(buffer.handle)),
.int(Int64(ns_id)),
.int(Int64(src_id)),
.string(hl_group),
.int(Int64(line)),
.int(Int64(col_start)),
@ -922,7 +922,7 @@ extension RxNeovimApi {
func bufSetVirtualText(
buffer: RxNeovimApi.Buffer,
ns_id: Int,
src_id: Int,
line: Int,
chunks: RxNeovimApi.Value,
opts: Dictionary<String, RxNeovimApi.Value>,
@ -931,7 +931,7 @@ extension RxNeovimApi {
let params: [RxNeovimApi.Value] = [
.int(Int64(buffer.handle)),
.int(Int64(ns_id)),
.int(Int64(src_id)),
.int(Int64(line)),
chunks,
.map(opts.mapToDict({ (Value.string($0), $1) })),
@ -960,13 +960,13 @@ extension RxNeovimApi {
func bufGetVirtualText(
buffer: RxNeovimApi.Buffer,
lnum: Int,
line: Int,
checkBlocked: Bool = true
) -> Single<RxNeovimApi.Value> {
let params: [RxNeovimApi.Value] = [
.int(Int64(buffer.handle)),
.int(Int64(lnum)),
.int(Int64(line)),
]
func transform(_ value: Value) throws -> RxNeovimApi.Value {
@ -1462,6 +1462,36 @@ extension RxNeovimApi {
.map(transform)
}
func getHlIdByName(
name: String,
checkBlocked: Bool = true
) -> Single<Int> {
let params: [RxNeovimApi.Value] = [
.string(name),
]
func transform(_ value: Value) throws -> Int {
guard let result = ((value.integerValue == nil ? nil : Int(value.integerValue!))) else {
throw RxNeovimApi.Error.conversion(type: Int.self)
}
return result
}
if checkBlocked {
return self
.checkBlocked(
self.rpc(method: "nvim_get_hl_id_by_name", params: params, expectsReturnValue: true)
)
.map(transform)
}
return self
.rpc(method: "nvim_get_hl_id_by_name", params: params, expectsReturnValue: true)
.map(transform)
}
func feedkeys(
keys: String,
mode: String,