Skip to content

TOML#

Server#

For more information about the LSP server, check taplo-lsp.

Installation#

cargo install taplo-lsp

For more instructions on how to install manually, check here.

Debugger: Not available#

Available configurations#

lsp-toml-cache-path#

Type: string

Default: /home/runner/.emacs.d/.cache/lsp-toml

Path to cache.


lsp-toml-command#

Type: string

Default: taplo-lsp

Path to taplo-lsp command.


lsp-toml-formatter-align-comments#

Type: boolean

Default: t

Align comments vertically after entries and array values.


lsp-toml-formatter-align-entries#

Type: boolean

Default: nil

Align consecutive entries vertically.


lsp-toml-formatter-allowed-blank-lines#

Type: number

Default: 2

Maximum amount of allowed consecutive blank lines. This does not affect the whitespace at the end of the document, as it is always stripped.


lsp-toml-formatter-array-auto-collapse#

Type: boolean

Default: t

Collapse arrays that dont exceed the maximum column width and dont contain comments.


lsp-toml-formatter-array-auto-expand#

Type: boolean

Default: t

Expand arrays to multiple lines that exceed the maximum column width.


lsp-toml-formatter-array-trailing-comma#

Type: boolean

Default: t

Append trailing commas for multi-line arrays.


lsp-toml-formatter-column-width#

Type: number

Default: 80

Maximum column width in characters, affects array expansion and collapse, this doesn`t take whitespace into account.


lsp-toml-formatter-compact-arrays#

Type: boolean

Default: t

Omit white space padding from single-line arrays.


lsp-toml-formatter-compact-entries#

Type: boolean

Default: nil

Omit white space padding around = for entries.


lsp-toml-formatter-compact-inline-tables#

Type: boolean

Default: nil

Omit white space padding from the start and end of inline tables.


lsp-toml-formatter-crlf#

Type: boolean

Default: nil

Use CRLF for line endings.


lsp-toml-formatter-indent-entries#

Type: boolean

Default: nil

Indent entries under tables.


lsp-toml-formatter-indent-string#

Type: (repeat string)

Default: nil

The substring that is used for indentation, should be tabs or spaces, but technically can be anything. Uses the IDE setting if not set.


lsp-toml-formatter-indent-tables#

Type: boolean

Default: nil

Indent based on tables and arrays of tables and their subtables, subtables out of order are not indented.


lsp-toml-formatter-reorder-keys#

Type: boolean

Default: nil

Alphabetically reorder keys that are not separated by empty lines.


lsp-toml-formatter-trailing-newline#

Type: boolean

Default: t

Add trailing newline at the end of the file if not present.


lsp-toml-schema-associations#

Type: (alist :key-type symbol :value-type string)

Default: ((^(.*(/|\\)\.?taplo\.toml|\.?taplo\.toml)$ . taplo://taplo.toml))

Document and schema associations.


lsp-toml-schema-enabled#

Type: boolean

Default: t

Enable completion and validation based on JSON schemas.


Type: boolean

Default: nil

Enable editor links.


lsp-toml-schema-repository-enabled#

Type: boolean

Default: t

Whether to use schemas from the provided schema repository.


lsp-toml-schema-repository-url#

Type: string

Default: https://taplo.tamasfe.dev/schema_index.json

A HTTP(S) URL that points to a schema index.


lsp-toml-taplo-config#

Type: file

Default: nil

An absolute, or workspace relative path to the Taplo configuration file.


lsp-toml-taplo-config-enabled#

Type: boolean

Default: t

Whether to enable the usage of a Taplo configuration file.



Last update: November 28, 2021