1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-27 14:14:19 +03:00

Merge branch 'master' into update-neovim

Conflicts:
	NvimServer
This commit is contained in:
Tae Won Ha 2022-07-03 10:20:57 +02:00
commit 2d31876e3e
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
4 changed files with 10 additions and 42 deletions

View File

@ -9,9 +9,9 @@ import Foundation
import MessagePack
import NvimServerTypes
import os
import RxNeovim
import RxPack
import RxSwift
import RxNeovim
extension NvimView {
final func initVimError() {
@ -400,9 +400,10 @@ extension NvimView {
// Visual -> Insert
// Normal -> Insert
// avoid insert -> insert
if case self.mode = CursorModeShape.insert, self.lastMode != self.mode, self.activateAsciiImInNormalMode {
TISSelectInputSource(self.lastImSource)
}
if case self.mode = CursorModeShape.insert,
self.lastMode != self.mode,
self.activateAsciiImInNormalMode
{ TISSelectInputSource(self.lastImSource) }
}
}

View File

@ -8,11 +8,11 @@ import Cocoa
import Commons
import MessagePack
import os
import RxPack
import RxNeovim
import RxPack
import RxSwift
import Tabs
import SpriteKit
import Tabs
public enum FontSmoothing: String, Codable, CaseIterable {
case systemSetting
@ -25,11 +25,7 @@ public protocol NvimViewDelegate: AnyObject {
func isMenuItemKeyEquivalent(_: NSEvent) -> Bool
}
public final class NvimView: NSView,
UiBridgeConsumer,
NSUserInterfaceValidations,
NSTextInputClient
{
public final class NvimView: NSView, NSUserInterfaceValidations, NSTextInputClient {
// MARK: - Public
public static let rpcEventName = "com.qvacua.NvimView"

View File

@ -11,38 +11,8 @@ import os
import RxPack
import RxSwift
protocol UiBridgeConsumer: AnyObject {
func initVimError()
func resize(_ value: MessagePackValue)
func clear()
func modeChange(_ value: MessagePackValue)
func modeInfoSet(_ value: MessagePackValue)
func flush(_ renderData: [MessagePackValue])
func setTitle(with value: MessagePackValue)
func stop()
func autoCommandEvent(_ value: MessagePackValue)
func ipcBecameInvalid(_ error: Swift.Error)
func bell()
func cwdChanged(_ value: MessagePackValue)
func colorSchemeChanged(_ value: MessagePackValue)
func defaultColorsChanged(_ value: MessagePackValue)
func optionSet(_ value: MessagePackValue)
func setDirty(with value: MessagePackValue)
func rpcEventSubscribed()
func event(_ value: MessagePackValue)
func bridgeHasFatalError(_ value: MessagePackValue?)
func setAttr(with value: MessagePackValue)
func updateMenu()
func busyStart()
func busyStop()
func mouseOn()
func mouseOff()
func visualBell()
func suspend()
}
final class UiBridge {
weak var consumer: UiBridgeConsumer?
weak var consumer: NvimView?
init(uuid: UUID, config: NvimView.Config) {
self.uuid = uuid

View File

@ -1,6 +1,7 @@
# Next
* Add `VimRRefreshFileBrowser` and `VimRRevealCurrentBufferInFileBrowser` functions. Thanks @jaanauati for the PR!
* Include `libintl` again.
# 0.41.2-20220628.220813