Skip to content

Commit c045b4f

Browse files
authored
docs(editor): fix lspconfig setup (#98)
1 parent b9a7944 commit c045b4f

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

editor/vim/README.md

+19-17
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,25 @@ The LSP integration will depend on the vim plugin you're using
1414
* Configure settings via [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig)
1515
```lua
1616
require'lspconfig'.jsonnet_ls.setup{
17-
ext_vars = {
18-
foo = 'bar',
19-
},
20-
formatting = {
21-
-- default values
22-
Indent = 2,
23-
MaxBlankLines = 2,
24-
StringStyle = 'single',
25-
CommentStyle = 'slash',
26-
PrettyFieldNames = true,
27-
PadArrays = false,
28-
PadObjects = true,
29-
SortImports = true,
30-
UseImplicitPlus = true,
31-
StripEverything = false,
32-
StripComments = false,
33-
StripAllButComments = false,
17+
settings = {
18+
ext_vars = {
19+
foo = 'bar',
20+
},
21+
formatting = {
22+
-- default values
23+
Indent = 2,
24+
MaxBlankLines = 2,
25+
StringStyle = 'single',
26+
CommentStyle = 'slash',
27+
PrettyFieldNames = true,
28+
PadArrays = false,
29+
PadObjects = true,
30+
SortImports = true,
31+
UseImplicitPlus = true,
32+
StripEverything = false,
33+
StripComments = false,
34+
StripAllButComments = false,
35+
},
3436
},
3537
}
3638
```

0 commit comments

Comments
 (0)