Skip to content

TOML#

Server#

For more information about the LSP server, check taplo.

Installation#

cargo install taplo-cli --features lsp

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

Path to taplo command.


lsp-toml-completion-max-keys#

Type: number

Default: 5

The maximum amount of keys in a dotted key to display during completion, 0 effectively disables key completions.


lsp-toml-schema-associations#

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

Default: nil

Additional document and schema associations.

The key must be a regular expression, this pattern is used to associate schemas with absolute document URIs.

The value must be an absolute URI to the JSON schema


lsp-toml-schema-cache-disk-expiration#

Type: number

Default: 600

The amount of seconds after which cached catalogs and schemas expire and will be attempted to be fetched again.


lsp-toml-schema-cache-memory-expiration#

Type: number

Default: 60

The amount of seconds after which schemas will be invalidated from memory.


lsp-toml-schema-catalogs#

Type: lsp-string-vector

Default: [https://www.schemastore.org/api/json/catalog.json]

A list of URLs to schema catalogs where schemas and associations can be fetched from


lsp-toml-schema-enabled#

Type: boolean

Default: t

Enable completion and validation based on JSON schemas.


Type: boolean

Default: nil

Whether to show clickable links for keys in the editor.


lsp-toml-semantic-tokens#

Type: boolean

Default: nil

Enable semantic tokens for inline table and array keys.


lsp-toml-syntax-semantic-tokens#

Type: boolean

Default: t

Whether to enable semantic tokens for tables and arrays.


lsp-toml-taplo-config-file-enabled#

Type: boolean

Default: t

Whether to enable the usage of a Taplo configuration file.


lsp-toml-taplo-config-file-path#

Type: string

Default: nil

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



Last update: April 18, 2024