1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 07:13:24 +03:00

Refactor slightly

This commit is contained in:
Tae Won Ha 2019-03-17 15:00:15 +01:00
parent 72ec7ef161
commit cd7d65c496
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 7 additions and 14 deletions

View File

@ -5,14 +5,6 @@
#import "CocoaCategories.h"
@implementation NSObject (NeoVimServer)
- (const char *)cdesc {
return self.description.cstr;
}
@end
@implementation NSString (NeoVimServer)
- (const char *)cstr {

View File

@ -6,9 +6,7 @@
#import <Foundation/Foundation.h>
#import "NvimServer.h"
#import "server_ui.h"
#import "Logging.h"
#import "CocoaCategories.h"
NvimServer *_neovim_server;
@ -60,15 +58,18 @@ int main(int argc, const char *argv[]) {
remoteServerName:remoteServerName
nvimArgs:nvimArgs
];
os_log(glog, "Started neovim server '%s' with args '%@'"
" and connected it with the remote agent '%s'.",
localServerName.cstr, nvimArgs, remoteServerName.cstr);
os_log_debug(
glog,
"Started neovim server '%@' with args '%@'"
" and connected it with the remote agent '%@'.",
localServerName, nvimArgs, remoteServerName
);
[_neovim_server notifyReadiness];
}
CFRunLoopRun();
os_log(glog, "NvimServer returning.");
os_log_debug(glog, "NvimServer returning.");
return 0;
}