Skip to content

Commit d826569

Browse files
Update README.md
1 parent 63171ab commit d826569

File tree

1 file changed

+11
-35
lines changed

1 file changed

+11
-35
lines changed

Editors/README.md

Lines changed: 11 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -22,56 +22,32 @@ The [Swift for Visual Studio Code extension](https://marketplace.visualstudio.co
2222

2323
## Sublime Text
2424

25-
Before using SourceKit-LSP with Sublime Text, you will need to install the LSP package from Package Control. To configure SourceKit-LSP, open the LSP package's settings. The following snippet should be enough to get started with Swift.
25+
Before using SourceKit-LSP with Sublime Text, you will need to install the LSP package from Package Control. And you're ready to go if you have `xcrun` in the `$PATH`.
2626

27-
You will need the path to the `sourcekit-lsp` executable for the "command" section.
27+
To configure SourceKit-LSP additionally, open the SourceKit-LSP 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.
2828

2929
```json
3030
{
31-
"clients":
32-
{
33-
"SourceKit-LSP":
34-
{
35-
"enabled": true,
36-
"command": [
31+
"command": [
3732
"<sourcekit-lsp command>"
38-
],
39-
"env": {
40-
// To override the toolchain, uncomment the following:
41-
// "SOURCEKIT_TOOLCHAIN_PATH": "<path to toolchain>",
42-
},
43-
"languages": [
33+
],
34+
"languages": [
4435
{
45-
"scopes": ["source.swift"],
46-
"syntaxes": [
47-
"Packages/Swift/Syntaxes/Swift.tmLanguage",
48-
"Packages/Decent Swift Syntax/Swift.sublime-syntax",
49-
],
50-
"languageId": "swift"
36+
"languageId": "c"
5137
},
5238
{
53-
"scopes": ["source.c"],
54-
"syntaxes": ["Packages/C++/C.sublime-syntax"],
55-
"languageId": "c"
39+
"languageId": "c++"
5640
},
5741
{
58-
"scopes": ["source.c++"],
59-
"syntaxes": ["Packages/C++/C++.sublime-syntax"],
60-
"languageId": "cpp"
42+
"languageId": "objc"
6143
},
6244
{
63-
"scopes": ["source.objc"],
64-
"syntaxes": ["Packages/Objective-C/Objective-C.sublime-syntax"],
65-
"languageId": "objective-c"
45+
"languageId": "objc++"
6646
},
6747
{
68-
"scopes": ["source.objc++"],
69-
"syntaxes": ["Packages/Objective-C/Objective-C++.sublime-syntax"],
70-
"languageId": "objective-cpp"
48+
"languageId": "swift"
7149
},
72-
]
73-
}
74-
}
50+
]
7551
}
7652
```
7753

0 commit comments

Comments
 (0)