mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Update README.md
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user