plugins.lsp.servers.jsonnet_ls.settings.formatting.CommentStyle

Whether comments should use hash #, slash //, or be left as-is.

Type: null or one of “hash”, “slash”, “leave” or raw lua code

Default: null

Plugin default: "slash"

Declared by:

plugins.lsp.servers.jsonnet_ls.settings.formatting.Indent

The number of spaces for each level of indenation.

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Plugin default: 2

Declared by:

plugins.lsp.servers.jsonnet_ls.settings.formatting.MaxBlankLines

Max allowed number of consecutive blank lines.

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Plugin default: 2

Declared by:

plugins.lsp.servers.jsonnet_ls.settings.formatting.PadArrays

Causes arrays to be written like [ this ] instead of [this].

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.lsp.servers.jsonnet_ls.settings.formatting.PadObjects

Causes objects to be written like { this } instead of {this}.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.lsp.servers.jsonnet_ls.settings.formatting.PrettyFieldNames

Causes fields to only be wrapped in '' when needed.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.lsp.servers.jsonnet_ls.settings.formatting.SortImports

Causes imports at the top of the file to be sorted in groups by filename.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.lsp.servers.jsonnet_ls.settings.formatting.StringStyle

Whether strings should use double quotes ", single quotes ', or be left as-is.

Type: null or one of “double”, “single”, “leave” or raw lua code

Default: null

Plugin default: "single"

Declared by:

plugins.lsp.servers.jsonnet_ls.settings.formatting.StripAllButComments

Removes everything, other than comments.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.lsp.servers.jsonnet_ls.settings.formatting.StripComments

Removes all comments.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.lsp.servers.jsonnet_ls.settings.formatting.StripEverything

Removes all comments and newlines.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.lsp.servers.jsonnet_ls.settings.formatting.UseImplicitPlus

Removes plus sign where it is not required.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by: