From 57c01e7f33a548a1da515d0805e7ce944bdc28a7 Mon Sep 17 00:00:00 2001 From: Serjan Nasredin Date: Tue, 5 Mar 2024 11:00:41 +0500 Subject: [PATCH] Add Toit LSP to docs (#2425) * Add Toit LSP * docs(update): path to toit lsp * update(doc): lsp toit corrected --- docs/src/language_servers.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/src/language_servers.md b/docs/src/language_servers.md index f5cfbc212..41162b1ac 100644 --- a/docs/src/language_servers.md +++ b/docs/src/language_servers.md @@ -717,6 +717,24 @@ Follow installation instructions on [LSP-tailwindcss](https://github.com/sublime Follow installation instructions on [LSP-terraform](https://github.com/sublimelsp/LSP-terraform). +## Toit + +1. Install the [Toit](https://packagecontrol.io/packages/Toit) package from Package Control for syntax highlighting. +2. Install the [Jaguar Language Server](https://github.com/toitlang/jaguar). +3. Open `Preferences > Package Settings > LSP > Settings` and add the `"jag"` client configuration to the `"clients"`: + + ```jsonc + { + "clients": { + "jag": { + "enabled": true, + "command": ["jag" "lsp"], + "selector": "source.toit" + } + } + } + ``` + ## TypeScript See [Javascript/TypeScript](#javascripttypescript).