forked from sublimelsp/LSP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLSP.sublime-settings
245 lines (225 loc) · 7.78 KB
/
LSP.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
{
// User clients configuration can be used to
// - override single settings of "default_clients"
// - create add new user specified clients
//
// "clients":
// {
// // Each new client must have the following structure.
// "client_name":
// {
// # Must-have settings (for new clients):
//
// // The command line required to run the server.
// "command": ["pyls"],
//
// // Use: "Show Scope Name" from Sublime's Developer menu
// "scopes": ["source.python"],
//
// // Run: view.settings().get("syntax") in console
// "syntaxes": ["Packages/Python/Python.sublime-syntax"],
//
// // See: https://github.com/Microsoft/language-server-protocol/issues/213
// "languageId": "python",
//
// # Optional settings (key-value pairs):
//
// // Sent to server once using workspace/didConfigurationChange notification
// "settings": { },
//
// // Sent once to server in initialize request
// "initializationOptions": { },
//
// // Extra variables to override/add to language server's environment.
// "env": { },
// }
// }
"clients": {
},
// Default clients configuration
// DO NOT MODIFY THIS SETTING!
// Use "clients" to override settings instead!
"default_clients":
{
"pyls":
{
"command": ["pyls"],
"scopes": ["source.python"],
"syntaxes": ["Packages/Python/Python.sublime-syntax"],
"languageId": "python"
},
"jsts":
{
"command": ["javascript-typescript-stdio"],
"scopes": ["source.ts", "source.tsx", "source.js", "source.jsx"],
"syntaxes": ["Packages/TypeScript-TmLanguage/TypeScript.tmLanguage", "Packages/TypeScript-TmLanguage/TypeScriptReact.tmLanguage", "Packages/Babel/JavaScript (Babel).sublime-syntax", "Packages/JavaScript/JavaScript.sublime-syntax"],
"languageId": "typescript"
},
"rls":
{
"command": ["rustup", "run", "nightly", "rls"],
"scopes": ["source.rust"],
"syntaxes": ["Packages/Rust/Rust.sublime-syntax", "Packages/Rust Enhanced/RustEnhanced.sublime-syntax"],
"languageId": "rust"
},
"dotty":
{
"command": ["coursier", "launch", "ch.epfl.lamp:dotty-language-server_0.2:0.2.0-RC1", "-M", "dotty.tools.languageserver.Main", "--", "-stdio"],
"scopes": ["source.scala"],
"syntaxes": ["Packages/Scala/Scala.sublime-syntax"],
"languageId": "scala"
},
"clangd":
{
"command": ["clangd"],
"scopes": ["source.c", "source.c++", "source.objc", "source.objc++"],
"syntaxes": ["Packages/C++/C.sublime-syntax", "Packages/C++/C++.sublime-syntax", "Packages/Objective-C/Objective-C.sublime-syntax", "Packages/Objective-C/Objective-C++.sublime-syntax"],
"languageId": "objc++"
},
"reason":
{
"command": ["ocaml-language-server", "--stdio"],
"scopes": ["source.reason"],
"syntaxes": ["Packages/sublime-reason/Reason.tmLanguage"],
"languageId": "reason"
},
"phpls":
{
"command": ["php", "~/vendor/felixfbecker/language-server/bin/php-language-server.php"],
"scopes": ["source.php", "embedding.php"],
"syntaxes": ["Packages/PHP/PHP.sublime-syntax"],
"languageId": "php"
},
"eslint":
{
"command": ["node", "/Users/tomv/Projects/tomv564/vscode-eslint/eslint-server/src/server"],
"scopes": ["source.js"],
"syntaxes": ["Packages/Babel/JavaScript (Babel).sublime-syntax", "Packages/JavaScript/JavaScript.sublime-syntax"],
"languageId": "javascript",
"initializationOptions": {
"nodePath": "/usr/local/bin/node"
}
},
"ocaml":
{
"command": ["ocaml-language-server", "--stdio"],
"scopes": ["source.ocaml"],
"syntaxes": ["Packages/OCaml/OCaml.sublime-syntax"],
"languageId": "ocaml"
},
"golsp":
{
"command": ["go-langserver"],
"scopes": ["source.go"],
"syntaxes": ["Packages/Go/Go.sublime-syntax"],
"languageId": "go"
},
"jdtls":
{
"command": ["java", "-jar", "PATH_TO_JDT_SERVER/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar", "-configuration", "PATH_TO_CONFIG_DIR"],
"scopes": ["source.java"],
"syntaxes": ["Packages/Java/Java.sublime-syntax"],
"languageId": "java"
},
"julials":
{
"command": ["bash", "PATH_TO_JULIA_SERVER/LanguageServer/contrib/languageserver.sh"],
"languageId": "julia",
"scopes": ["source.julia"],
"syntaxes": ["Packages/Julia/Julia.sublime-syntax"],
"settings": {"runlinter": true}
},
"polymer-ide":
{
"command": ["polymer-editor-service"],
"scopes": [
"text.html.basic",
"text.html",
"source.html",
"source.js",
"source.css",
"source.json"
],
"syntaxes": [
"Packages/HTML/HTML.sublime-syntax",
"Packages/CSS/CSS.sublime-syntax",
"Packages/JavaScript/JavaScript.sublime-syntax",
"Packages/JavaScript/JSON.sublime-syntax"
],
"languageId": "javascript",
"settings": {
"polymer-ide": {
"analyzeWholePackage": false,
"fixOnSave": false
}
}
},
"rlang":
{
"command": ["R", "--quiet", "--slave", "-e", "languageserver::run()"],
"languageId": "r",
"scopes":
[
"source.r"
],
"syntaxes":
[
"Packages/R/R.sublime-syntax",
"Packages/R-Box/syntax/R Extended.sublime-syntax"
]
}
},
// Show activity messages in the status bar for a few seconds.
// Example: Starting pyls ...
"show_status_messages": true,
// Show permanent language server status in the status bar.
"show_view_status": true,
// Open and close the diagnostics panel automatically,
// depending on available diagnostics.
"auto_show_diagnostics_panel": true,
// Show in-line diagnostics using phantoms for unchanged files.
"show_diagnostics_phantoms": false,
// Show the diagnostics description of the code
// under the cursor in status bar if available.
"show_diagnostics_in_view_status": true,
// Highlighting style of code diagnostics.
// Valid values are "underline" or "box"
"diagnostics_highlight_style": "underline",
// If true, highlight the active parameter of the currently active signature.
// Note that this disables mdpopups highlighting.
"highlight_active_signature_parameter": true,
// Highlighting style of "highlights": accentuating nearby text entities that
// are related to the one under your cursor.
// Valid values are "underline", "stippled" or "squiggly".
"document_highlight_style": "underline",
"document_highlight_scopes": {
"unknown": "text",
"text": "text",
"read": "markup.inserted",
"write": "markup.changed"
},
// Gutter marker for code diagnostics.
// Valid values are "bookmark", "circle", "cross", "dot" or ""
"diagnostics_gutter_marker": "dot",
// Request completions for all characters if set to true,
// or just after trigger characters only otherwise.
"complete_all_chars": true,
// Controls which hints the completion panel displays
// "auto": completion details if available or kind otherwise
// "detail": completion details if available
// "kind": completion kind if available
// "none": completion item label only
"completion_hint_type": "auto",
// Disable Sublime Text's explicit and word completion.
"only_show_lsp_completions": false,
// Resolve completions and apply snippet if received.
"resolve_completion_for_snippets": false,
// Show verbose debug messages in the sublime console.
"log_debug": false,
// Show notifications from language servers in the console.
"log_server": true,
// Show language server stderr output in the console.
"log_stderr": false,
// Show full JSON-RPC responses in the console
"log_payloads": false
}