ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-taplo

by sublimelsp ST4

TOML support for Sublime's LSP plugin

Labels lsp, toml

Details

Installs

  • Total 56
  • Win 19
  • Mac 24
  • Linux 13
Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25
Windows 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 3 0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 1 0
Linux 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

LSP-taplo

TOML support for Sublime Text's LSP plugin.

Uses Taplo Language Server to provide completions, validation, formatting and other features for TOML files. See linked site for more information.

Installation

  1. Install LSP and LSP-taplo from Package Control.
  2. Restart Sublime Text.

[!NOTE]

The plugin does not distribute but download language server binaries from official sources.

Configuration

Open configuration file by running Preferences: LSP-taplo Settings from Command Palette or via Main Menu (Preferences > Package Settings > LSP > Servers > LSP-taplo).

Taplo supports .taplo.toml and taplo.toml files to manage folder specific configuration.

Usage

[!NOTE]

The following commands require a TOML file to be focused.

Assigning Schemas

Document validation and completions require proper JSON schema to be assigned to a document.

JSON schemas can by assigned dynamically by calling Taplo: Select schema for TOML.

Copy & Paste

To convert copied content between JSON and TOML, open Command Palette and type:

  • Edit: Copy as JSON
  • Edit: Paste as JSON
  • Edit: Paste as TOML