Skip to content

Commit 50dc155

Browse files
authored
Add missing commas and hashes in dictionaries passed to LspAddServer (#662)
1 parent 410289f commit 50dc155

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/configs.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ Sample code to add the Eclipse Java Development Tools (JDT) language server to t
146146
call LspAddServer([#{name: 'jdtls',
147147
\ filetype: 'java',
148148
\ path: '/usr/local/jdtls/bin/jdtls',
149-
\ args: []
150-
\ initializationOptions: {
151-
\ settings: {
152-
\ java: {
153-
\ completion: {
149+
\ args: [],
150+
\ initializationOptions: #{
151+
\ settings: #{
152+
\ java: #{
153+
\ completion: #{
154154
\ filteredTypes: ["com.sun.*", "java.awt.*", "jdk.*", "org.graalvm.*", "sun.*", "javax.awt.*", "javax.swing.*"],
155155
\ },
156156
\ },
@@ -427,7 +427,7 @@ To enable the inlay hint support, include the following in the above code to add
427427

428428
Sample code to add the Solargraph language server to the LSP plugin:
429429
```
430-
call LspAddServer([#{name: 'solargraph'
430+
call LspAddServer([#{name: 'solargraph',
431431
\ filetype: ['ruby'],
432432
\ path: 'solargraph',
433433
\ args: ['stdio']
@@ -441,7 +441,7 @@ call LspAddServer([#{name: 'solargraph'
441441

442442
Sample code to add the swift language server to the LSP plugin:
443443
```
444-
call LspAddServer([#{name: 'swiftls'
444+
call LspAddServer([#{name: 'swiftls',
445445
\ filetype: ['swift'],
446446
\ path: '/usr/bin/xcrun',
447447
\ args: ['sourcekit-lsp']
@@ -455,7 +455,7 @@ call LspAddServer([#{name: 'swiftls'
455455

456456
Sample code to add the typescript/javascript language server to the LSP plugin:
457457
```
458-
call LspAddServer([#{name: 'tsserver'
458+
call LspAddServer([#{name: 'tsserver',
459459
\ filetype: ['javascript', 'typescript'],
460460
\ path: '/usr/local/bin/typescript-language-server',
461461
\ args: ['--stdio']
@@ -518,7 +518,7 @@ call LspAddServer([#{name: 'vue-ls',
518518
\ initializationOptions: #{
519519
\ typescript: #{
520520
\ tsdk: '/usr/local/node_modules/typescript/lib'
521-
\ }
521+
\ },
522522
\ vue: #{
523523
\ hybridMode: v:false
524524
\ }

0 commit comments

Comments
 (0)