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 69
  • Win 25
  • Mac 27
  • Linux 17
Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 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
Windows 0 0 1 1 0 1 1 0 0 0 0 0 2 0 0 0 0 0 0 0 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
Mac 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 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
Linux 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 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

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