Skip to content

Commit 68c29ca

Browse files
committed
fix colorscheme decode
1 parent 3306da6 commit 68c29ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

VimR/VimR/MainWindow+Delegates.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
import Cocoa
7+
import MessagePack
78
import NvimView
89
import RxNeovim
910
import RxPack
@@ -101,6 +102,8 @@ extension MainWindow {
101102
for: .setTheme(Theme(from: nvimTheme, additionalColorDict: colors))
102103
)
103104
)
105+
}, onError: {
106+
err in self.log.trace("oops couldn't set theme")
104107
})
105108
.disposed(by: self.disposeBag)
106109
}
@@ -153,7 +156,8 @@ extension MainWindow {
153156
(
154157
colorName: colorName,
155158
observable: self.neoVimView.api
156-
.getHlByName(name: colorName, rgb: true)
159+
.getHl(ns_id: 0,
160+
opts: ["name": MessagePackValue(colorName)])
157161
.asObservable()
158162
)
159163
})

0 commit comments

Comments
 (0)