1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 16:56:40 +03:00

GH-439 Do not #import header files from swift neovim in neovim server

This commit is contained in:
Tae Won Ha 2017-05-27 09:31:00 +02:00
parent c874701c7e
commit 9490e794c5
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -8,7 +8,6 @@
#import "Logging.h"
#import "server_globals.h"
#import "NeoVimServer.h"
#import "NeoVimUiBridgeProtocol.h"
#import "NeoVimBuffer.h"
#import "NeoVimWindow.h"
#import "NeoVimTab.h"
@ -32,6 +31,28 @@
#define pun_type(t, x) (*((t *) (&(x))))
// From NeoVimUiBridgeProtocol.h
typedef NS_ENUM(NSUInteger, FontTrait) {
FontTraitNone = 0,
FontTraitItalic = (1 << 0),
FontTraitBold = (1 << 1),
FontTraitUnderline = (1 << 2),
FontTraitUndercurl = (1 << 3)
};
typedef struct {
FontTrait fontTrait;
unsigned int foreground;
unsigned int background;
unsigned int special;
} CellAttributes;
static unsigned int _default_foreground = 0xFF000000;
static unsigned int _default_background = 0xFFFFFFFF;
static unsigned int _default_special = 0xFFFF0000;
// ---
typedef struct {
UIBridgeData *bridge;
Loop *loop;
@ -42,9 +63,6 @@ typedef struct {
// We declare nvim_main because it's not declared in any header files of neovim
extern int nvim_main(int argc, char **argv);
static unsigned int _default_foreground = qDefaultForeground;
static unsigned int _default_background = qDefaultBackground;
static unsigned int _default_special = qDefaultSpecial;
// The thread in which neovim's main runs
static uv_thread_t _nvim_thread;