Skip to content

Commit

Permalink
docs(editor): fix lspconfig setup (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duologic authored May 17, 2023
1 parent b9a7944 commit c045b4f
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions editor/vim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,25 @@ The LSP integration will depend on the vim plugin you're using
* Configure settings via [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig)
```lua
require'lspconfig'.jsonnet_ls.setup{
ext_vars = {
foo = 'bar',
},
formatting = {
-- default values
Indent = 2,
MaxBlankLines = 2,
StringStyle = 'single',
CommentStyle = 'slash',
PrettyFieldNames = true,
PadArrays = false,
PadObjects = true,
SortImports = true,
UseImplicitPlus = true,
StripEverything = false,
StripComments = false,
StripAllButComments = false,
settings = {
ext_vars = {
foo = 'bar',
},
formatting = {
-- default values
Indent = 2,
MaxBlankLines = 2,
StringStyle = 'single',
CommentStyle = 'slash',
PrettyFieldNames = true,
PadArrays = false,
PadObjects = true,
SortImports = true,
UseImplicitPlus = true,
StripEverything = false,
StripComments = false,
StripAllButComments = false,
},
},
}
```
Expand Down

0 comments on commit c045b4f

Please sign in to comment.