From 26c287f84566e60a07f5924c8f733f9633dce144 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Tue, 18 Aug 2020 17:43:52 +0200 Subject: [PATCH] Copy NvimView.vim to plugin --- NvimView/Package.swift | 3 ++- bin/download_nvimserver.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NvimView/Package.swift b/NvimView/Package.swift index b4891b57..e61059bb 100644 --- a/NvimView/Package.swift +++ b/NvimView/Package.swift @@ -17,9 +17,10 @@ let package = Package( .target( name: "NvimView", dependencies: ["RxSwift", "MessagePack", "Socket"], + // com.qvacua.NvimView.vim is copied by the download NvimServer script. + exclude: ["com.qvacua.NvimView.vim"], resources: [ .copy("runtime"), - .copy("com.qvacua.NvimView.vim"), .copy("NvimServer"), ] ), diff --git a/bin/download_nvimserver.sh b/bin/download_nvimserver.sh index 6d10c004..14143c39 100755 --- a/bin/download_nvimserver.sh +++ b/bin/download_nvimserver.sh @@ -22,6 +22,7 @@ download_nvimserver() { cp -r "${nvimserver_dir_path}/NvimServer" NvimView/Sources/NvimView/ cp -r "${nvimserver_dir_path}/runtime" NvimView/Sources/NvimView/ + cp NvimView/Sources/NvimView/com.qvacua.NvimView.vim NvimView/Sources/NvimView/runtime/plugin echo "### Downloaded NvimServer" }