Skip to content

Commit 0e0f6d3

Browse files
authored
Merge pull request #1184 from yaroslavyaroslav/patch-2
Update Editors/README.md
2 parents 387ce43 + 491103d commit 0e0f6d3

File tree

1 file changed

+1
-52
lines changed

1 file changed

+1
-52
lines changed

Editors/README.md

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -22,58 +22,7 @@ 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.
26-
27-
You will need the path to the `sourcekit-lsp` executable for the "command" section.
28-
29-
```json
30-
{
31-
"clients":
32-
{
33-
"SourceKit-LSP":
34-
{
35-
"enabled": true,
36-
"command": [
37-
"<sourcekit-lsp command>"
38-
],
39-
"env": {
40-
// To override the toolchain, uncomment the following:
41-
// "SOURCEKIT_TOOLCHAIN_PATH": "<path to toolchain>",
42-
},
43-
"languages": [
44-
{
45-
"scopes": ["source.swift"],
46-
"syntaxes": [
47-
"Packages/Swift/Syntaxes/Swift.tmLanguage",
48-
"Packages/Decent Swift Syntax/Swift.sublime-syntax",
49-
],
50-
"languageId": "swift"
51-
},
52-
{
53-
"scopes": ["source.c"],
54-
"syntaxes": ["Packages/C++/C.sublime-syntax"],
55-
"languageId": "c"
56-
},
57-
{
58-
"scopes": ["source.c++"],
59-
"syntaxes": ["Packages/C++/C++.sublime-syntax"],
60-
"languageId": "cpp"
61-
},
62-
{
63-
"scopes": ["source.objc"],
64-
"syntaxes": ["Packages/Objective-C/Objective-C.sublime-syntax"],
65-
"languageId": "objective-c"
66-
},
67-
{
68-
"scopes": ["source.objc++"],
69-
"syntaxes": ["Packages/Objective-C/Objective-C++.sublime-syntax"],
70-
"languageId": "objective-cpp"
71-
},
72-
]
73-
}
74-
}
75-
}
76-
```
25+
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`.
7726

7827
## Emacs
7928

0 commit comments

Comments
 (0)