mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-26 23:36:08 +03:00
Reformat
This commit is contained in:
parent
3166fe0b6c
commit
84c3362238
@ -5,14 +5,13 @@
|
||||
|
||||
import Cocoa
|
||||
import MessagePack
|
||||
import RxPack
|
||||
import PureLayout
|
||||
import RxPack
|
||||
import Tabs
|
||||
|
||||
extension NvimView {
|
||||
|
||||
public struct TabEntry: Hashable, TabRepresentative {
|
||||
public static func ==(lhs: TabEntry, rhs: TabEntry) -> Bool { lhs.tabpage == rhs.tabpage }
|
||||
public extension NvimView {
|
||||
struct TabEntry: Hashable, TabRepresentative {
|
||||
public static func == (lhs: TabEntry, rhs: TabEntry) -> Bool { lhs.tabpage == rhs.tabpage }
|
||||
|
||||
public var title: String
|
||||
public var isSelected = false
|
||||
@ -20,8 +19,7 @@ extension NvimView {
|
||||
public var tabpage: RxNeovimApi.Tabpage
|
||||
}
|
||||
|
||||
public struct Config {
|
||||
|
||||
struct Config {
|
||||
var usesCustomTabBar: Bool
|
||||
var useInteractiveZsh: Bool
|
||||
var cwd: URL
|
||||
@ -46,13 +44,12 @@ extension NvimView {
|
||||
}
|
||||
}
|
||||
|
||||
public enum Warning {
|
||||
enum Warning {
|
||||
case cannotCloseLastTab
|
||||
case noWriteSinceLastChange
|
||||
}
|
||||
|
||||
public enum Event {
|
||||
|
||||
enum Event {
|
||||
case neoVimStopped
|
||||
case setTitle(String)
|
||||
case setDirtyStatus(Bool)
|
||||
@ -81,14 +78,12 @@ extension NvimView {
|
||||
case apiError(msg: String, cause: Swift.Error)
|
||||
}
|
||||
|
||||
public enum Error: Swift.Error {
|
||||
|
||||
enum Error: Swift.Error {
|
||||
case nvimLaunch(msg: String, cause: Swift.Error)
|
||||
case ipc(msg: String, cause: Swift.Error)
|
||||
}
|
||||
|
||||
public struct Theme: CustomStringConvertible {
|
||||
|
||||
struct Theme: CustomStringConvertible {
|
||||
public static let `default` = Theme()
|
||||
|
||||
public var foreground = NSColor.textColor
|
||||
@ -118,10 +113,10 @@ extension NvimView {
|
||||
}
|
||||
|
||||
public var description: String {
|
||||
return "NVV.Theme<" +
|
||||
"fg: \(self.foreground.hex), bg: \(self.background.hex), " +
|
||||
"visual-fg: \(self.visualForeground.hex), visual-bg: \(self.visualBackground.hex)" +
|
||||
">"
|
||||
"NVV.Theme<" +
|
||||
"fg: \(self.foreground.hex), bg: \(self.background.hex), " +
|
||||
"visual-fg: \(self.visualForeground.hex), visual-bg: \(self.visualBackground.hex)" +
|
||||
">"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user