Update README.md

This commit is contained in:
Yaroslav
2024-04-23 23:33:40 +02:00
committed by GitHub
parent 8e7df193cb
commit 491103de41

View File

@@ -22,20 +22,7 @@ The [Swift for Visual Studio Code extension](https://marketplace.visualstudio.co
## Sublime Text
Before using SourceKit-LSP with Sublime Text, you will need to install the LSP and LSP-SourceKit packages from Package Control. And you're ready to go if you have `xcrun` in the `$PATH`.
To configure LSP-SourceKit additionally, open the LSP-SourceKit package's settings by typing in command palette `Preferences: LSP-SourceKit Settings`. The following snippet should be enough to get started with Swift and Objective-C/C++ and the custom path to `sourcekit-lsp` executable.
Also install [Swift-Next](https://github.com/Swift-Next/Swift-Next) syntax package to use Swift in Sublime Text 4.
```json
{
"command": [
"sourcekit-lsp"
],
"selector": "source.c | source.c++ | source.objc | source.objc++ | source.swift"
}
```
Before using SourceKit-LSP with Sublime Text, you will need to install the [LSP](https://packagecontrol.io/packages/LSP), [LSP-SourceKit](https://github.com/sublimelsp/LSP-SourceKit) and [Swift-Next](https://github.com/Swift-Next/Swift-Next) packages from Package Control. Then toggle the server on by typing in command palette `LSP: Enable Language Server Globally` or `LSP: Enable Language Server in Project`.
## Emacs