@@ -231,9 +231,34 @@ path this is relative to the workspace directory. If several paths are
231
231
provided, then the corresponding settings are merged with precedence going to
232
232
the last file.
233
233
234
+ The initialization options found in the files in this config are combined with
235
+ the initialization options specified in the server command, if any. The former
236
+ taking precedence over the latter.
237
+
238
+ Note that the key under which the initialization options for each server lives
239
+ matches the key under which the server expects it's configuration. This is
240
+ important for servers that can request configuration via a
241
+ `workspace/configuration` request.
242
+
243
+ Previously, the initialization options lived under a `initializationOptions`
244
+ key, which worked, but made answering that `workspace/configuration` request
245
+ hard, since we couldn't really get the correct path to the setting the server
246
+ requested. Since version 0.1.161 of this plugin, that key has been deprecated
247
+ and you'll see a message saying that you should move off of it if your settings
248
+ file includes an `initializationOptions` key.
249
+
234
250
Example settings file content: >
235
251
{
236
- "rust.clippy_preference": "on"
252
+ "gopls": {
253
+ "usePlaceholders": true,
254
+ "local": "github.com/my/pkg",
255
+ },
256
+ "rust-analyzer": {
257
+ "inlayHints": {
258
+ "enable": true,
259
+ "chainingHints": true
260
+ },
261
+ },
237
262
}
238
263
239
264
Default: ".vim/settings.json"
0 commit comments