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

LSP-taplo

by sublimelsp ST4

TOML support for Sublime's LSP plugin

Details

Installs

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