LSP working for Swift
This commit is contained in:
parent
e0a3fcffb6
commit
c93aa1d8c5
|
@ -1028,6 +1028,7 @@ END
|
||||||
main: "main.swift",
|
main: "main.swift",
|
||||||
compile: "swiftc main.swift",
|
compile: "swiftc main.swift",
|
||||||
run: "./main",
|
run: "./main",
|
||||||
|
lsp: "sourcekit-lsp",
|
||||||
template: `print("Hello, world!")
|
template: `print("Hello, world!")
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
|
|
|
@ -119,6 +119,7 @@ gdown "https://drive.google.com/uc?export=download&id=1eE1-VuZz0gv-fITaGVT_r1Uun
|
||||||
mkdir /opt/swift
|
mkdir /opt/swift
|
||||||
tar -xf swift.tar.gz -C /opt/swift --strip-components=2
|
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/swiftc /usr/bin/swiftc
|
||||||
|
ln -s /opt/swift/bin/sourcekit-lsp /usr/bin/sourcekit-lsp
|
||||||
rm swift.tar.gz
|
rm swift.tar.gz
|
||||||
|
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
|
Loading…
Reference in New Issue