From 2edc970cdb857362eade6f69ef2f65c3387dd1cd Mon Sep 17 00:00:00 2001 From: SolaWing <316786359@qq.com> Date: Sat, 18 Feb 2023 22:48:15 +0800 Subject: [PATCH] feat: provide neovim original binary --- NvimServer | 2 +- NvimView/Sources/NvimView/UiBridge.swift | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NvimServer b/NvimServer index 5f8dd8c4..828d8db0 160000 --- a/NvimServer +++ b/NvimServer @@ -1 +1 @@ -Subproject commit 5f8dd8c4a33203277cf6058f559383626411693d +Subproject commit 828d8db02ff366e2a8bfa6ad14ccb39a7f363cdb diff --git a/NvimView/Sources/NvimView/UiBridge.swift b/NvimView/Sources/NvimView/UiBridge.swift index c0153ff5..62d23427 100644 --- a/NvimView/Sources/NvimView/UiBridge.swift +++ b/NvimView/Sources/NvimView/UiBridge.swift @@ -278,7 +278,7 @@ final class UiBridge { // We know that NvimServer is there. process.launchPath = Bundle.module.url(forResource: "NvimServer", withExtension: nil)!.path process - .arguments = [self.localServerName, self.remoteServerName, usesCustomTabBarArg] + + .arguments = ["--gui", self.localServerName, self.remoteServerName, usesCustomTabBarArg] + ["--headless"] + self.nvimArgs self.log.debug( @@ -294,6 +294,7 @@ final class UiBridge { let nvimCmd = [ // We know that NvimServer is there. Bundle.module.url(forResource: "NvimServer", withExtension: nil)!.path, + "--gui", self.localServerName, self.remoteServerName, self.usesCustomTabBar ? "1" : "0",