LSP working for Swift

This commit is contained in:
Radon Rosborough 2020-07-09 12:47:22 -06:00
parent e0a3fcffb6
commit c93aa1d8c5
2 changed files with 2 additions and 0 deletions

View File

@ -1028,6 +1028,7 @@ END
main: "main.swift",
compile: "swiftc main.swift",
run: "./main",
lsp: "sourcekit-lsp",
template: `print("Hello, world!")
`,
},

View File

@ -119,6 +119,7 @@ gdown "https://drive.google.com/uc?export=download&id=1eE1-VuZz0gv-fITaGVT_r1Uun
mkdir /opt/swift
tar -xf swift.tar.gz -C /opt/swift --strip-components=2
ln -s /opt/swift/bin/swiftc /usr/bin/swiftc
ln -s /opt/swift/bin/sourcekit-lsp /usr/bin/sourcekit-lsp
rm swift.tar.gz
popd >/dev/null