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

LSP-taplo

by sublimelsp ST4 New

TOML support for Sublime's LSP plugin

Details

Installs

  • Total 15
  • Win 5
  • Mac 6
  • Linux 4
Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22
Windows 0 1 1 0 0 0 0 2 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 1 0 0 3 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 3 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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