forked from sublimelsp/LSP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLSP.sublime-settings
466 lines (440 loc) · 12.8 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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
{
// 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,
// Open the diagnostics panel automatically
// when diagnostics level is equal to or less than:
// error: 1
// warning: 2
// info: 3
// hint: 4
"auto_show_diagnostics_panel_level": 3,
// Show in-line diagnostics using phantoms for unchanged files.
"show_diagnostics_phantoms": false,
// Show errors and warnings count in the status bar
"show_diagnostics_count_in_view_status": false,
// Show the diagnostics description of the code
// under the cursor in status bar if available.
"show_diagnostics_in_view_status": true,
// Show the diagnostics with level less than or equal to
// the given value.
// error: 1
// warning: 2
// info: 3
// hint: 4
"show_diagnostics_severity_level": 3,
// Highlighting style of code diagnostics.
// Valid values are "underline" or "box"
"diagnostics_highlight_style": "underline",
// Highlighting style of "highlights": accentuating nearby text entities that
// are related to the one under your cursor.
// Valid values are "fill", "box", "underline", "stippled", "squiggly" or "".
// When set to the empty string (""), no document highlighting is requested.
"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",
// Show a bulb in the gutter when code actions are available
"show_code_actions_bulb": false,
// 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,
// When presenting completions, prefer the "label" over the "filterText" key
// in the CompletionItem. By default, the "filterText" is chosen over the
// "label". If the "filterText" is not present, fall back to the "label".
"prefer_label_over_filter_text": false,
// Show symbol references in Sublime's quick panel instead of the bottom panel.
"show_references_in_quick_panel": false,
// Use monospace font for the quick panel.
"quick_panel_monospace_font": 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,
// 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/didChangeConfiguration 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", "Packages/MagicPython/grammars/MagicPython.tmLanguage", "Packages/Djaneiro/Syntaxes/Python Django.tmLanguage"],
"languageId": "python"
// "settings": {
// "pyls": {
// "configurationSources": ["flake8"],
// "plugins": {
// "pyflakes": {
// "enabled": false
// }
// }
// }
// }
},
"rls":
{
"command": ["rustup", "run", "nightly", "rls"],
"scopes": ["source.rust"],
"syntaxes": ["Packages/Rust/Rust.sublime-syntax", "Packages/Rust Enhanced/RustEnhanced.sublime-syntax"],
"languageId": "rust"
},
"ra-lsp":
{
"command": ["ra_lsp_server"],
"scopes": ["source.rust"],
"syntaxes": ["Packages/Rust/Rust.sublime-syntax", "Packages/Rust Enhanced/RustEnhanced.sublime-syntax"],
"languageId": "rust"
},
"bashls":
{
"command":
[
"bash-language-server", // add .cmd on windows
"start"
],
"languageId": "bash",
"scopes":
[
"source.shell.bash"
],
"syntaxes":
[
"Packages/ShellScript/Bash.sublime-syntax"
]
},
"clangd":
{
"command": ["clangd"],
"languages": [{
"scopes": ["source.c"],
"syntaxes": ["Packages/C++/C.sublime-syntax"],
"languageId": "c"
},{
"scopes": ["source.c++"],
"syntaxes": ["Packages/C++/C++.sublime-syntax"],
"languageId": "cpp"
},{
"scopes": ["source.objc"],
"syntaxes": ["Packages/Objective-C/Objective-C.sublime-syntax"],
"languageId": "objective-c"
},{
"scopes": ["source.objc++"],
"syntaxes": ["Packages/Objective-C/Objective-C++.sublime-syntax"],
"languageId": "objective-cpp"
},
]
},
"cquery":
{
"command":
[
"cquery",
"--log-all-to-stderr"
],
"initializationOptions":
{
"cacheDirectory": "/tmp/cquery"
},
"languages":
[
{
"languageId": "c",
"scopes":
[
"source.c"
],
"syntaxes":
[
"Packages/C++/C.sublime-syntax"
]
},
{
"languageId": "cpp",
"scopes":
[
"source.c++"
],
"syntaxes":
[
"Packages/C++/C++.sublime-syntax"
]
},
{
"languageId": "objective-c",
"scopes":
[
"source.objc"
],
"syntaxes":
[
"Packages/Objective-C/Objective-C.sublime-syntax"
]
},
{
"languageId": "objective-cpp",
"scopes":
[
"source.objc++"
],
"syntaxes":
[
"Packages/Objective-C/Objective-C++.sublime-syntax"
]
}
]
},
"dart": {
"command": [
"dart_language_server"
],
"languageId": "dart",
"scopes": [
"source.dart"
],
"syntaxes": [
"Packages/Dart/Dart.tmLanguage"
]
},
"flow":
{
"command": ["flow", "lsp"],
"scopes": ["source.js"],
"syntaxes": ["Packages/Babel/JavaScript (Babel).sublime-syntax", "Packages/JavaScript/JavaScript.sublime-syntax"],
"languageId": "javascript"
},
"haskell-ide-engine":
{
"command":
[
"hie",
"--lsp"
],
"languageId": "haskell",
"scopes":
[
"source.haskell"
],
"syntaxes":
[
"Packages/Haskell/Haskell.sublime-syntax"
]
},
"intelephense-ls":
{
"command": ["intelephense", "--stdio"],
"scopes": ["source.php", "embedding.php"],
"syntaxes": ["Packages/PHP/PHP.sublime-syntax"],
"languageId": "php"
},
"reason":
{
"command": ["ocaml-language-server", "--stdio"],
"scopes": ["source.reason"],
"syntaxes": ["Packages/Reason/Reason.tmLanguage"],
"languageId": "reason"
},
"phpls":
{
"command": ["php", "~/.composer/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"
}
},
"lsp-tsserver":
{
"command": ["lsp-tsserver"],
"languages": [{
"scopes": ["source.js", "source.jsx"],
"syntaxes": ["Packages/Babel/JavaScript (Babel).sublime-syntax", "Packages/JavaScript/JavaScript.sublime-syntax"],
"languageId": "javascript"
}, {
"scopes": ["source.ts", "source.tsx"],
"syntaxes": ["Typescript"],
"languageId": "typescript"
}
]
},
"metals":
{
"command": ["metals-sublime"],
"languageId": "scala",
"scopes": ["source.scala"],
"syntaxes": ["Packages/Scala/Scala.sublime-syntax"]
},
"javascript-typescript-langserver":
{
"command": ["javascript-typescript-stdio"],
"languages": [{
"scopes": ["source.js", "source.jsx"],
"syntaxes": ["Javascript"],
"languageId": "javascript"
}, {
"scopes": ["source.ts", "source.tsx"],
"syntaxes": ["Typescript"],
"languageId": "typescript"
}
]
},
"typescript-language-server":
{
"command": ["typescript-language-server", "--stdio"],
"languages": [{
"scopes": ["source.ts", "source.tsx"],
"syntaxes": ["Typescript"],
"languageId": "typescript"
}]
},
"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"
},
"gopls":
{
"command": ["gopls"],
"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"
},
"polymer-ide":
{
"command": ["polymer-editor-service"],
"languages": [{
"scopes": ["text.html", "text.html.basic", "source.html"],
"syntaxes": ["Packages/HTML/HTML.sublime-syntax"],
"languageId": "html"
},{
"scopes": ["source.js"],
"syntaxes": ["Packages/JavaScript/JavaScript.sublime-syntax"],
"languageId": "javascript"
},{
"scopes": ["source.css"],
"syntaxes": ["Packages/CSS/CSS.sublime-syntax"],
"languageId": "css"
},{
"scopes": ["source.json"],
"syntaxes": ["Packages/JavaScript/JSON.sublime-syntax"],
"languageId": "json"
}
],
"settings": {
"polymer-ide": {
"analyzeWholePackage": false,
"fixOnSave": false
}
}
},
"ruby": {
"command":
[
"solargraph",
"socket"
],
"languageId": "ruby",
"scopes":
[
"source.ruby",
"source.ruby.rails"
],
"syntaxes":
[
"Packages/Ruby/Ruby.sublime-syntax",
"Packages/Rails/Ruby on Rails.sublime-syntax",
"Packages/Rails/HTML (Rails).sublime-syntax"
],
"tcp_port": 7658
},
"vscode-css":
{
"command": ["css-languageserver", "--stdio"],
"scopes": ["source.css"],
"syntaxes": ["Packages/CSS/CSS.sublime-syntax"],
"languageId": "css"
},
}
}