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 83
  • Win 29
  • Mac 30
  • Linux 24
Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 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
Windows 0 0 0 0 0 0 1 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 1 0 0 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 1 0 1 0 0 0 0 0 1 0 0 1
Linux 0 0 0 0 1 1 0 0 0 2 0 1 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 1 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