From bb289382a75f904906117fbc384cae153e20879d Mon Sep 17 00:00:00 2001 From: serjan-nasredin Date: Wed, 21 Feb 2024 13:07:19 +0500 Subject: [PATCH 1/3] Add Toit LSP --- docs/src/language_servers.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/src/language_servers.md b/docs/src/language_servers.md index f5cfbc212..18da241b3 100644 --- a/docs/src/language_servers.md +++ b/docs/src/language_servers.md @@ -717,6 +717,11 @@ Follow installation instructions on [LSP-tailwindcss](https://github.com/sublime Follow installation instructions on [LSP-terraform](https://github.com/sublimelsp/LSP-terraform). +## Toit + +Install the [Toit](https://packagecontrol.io/packages/Toit) package from Package Control for syntax highlighting. +Follow installation instructions on [LSP-toit](https://github.com/toitlang/toit/tree/master/tools/lsp/server). + ## TypeScript See [Javascript/TypeScript](#javascripttypescript). From 8cb5b7b04f762f9f4be961cd8760bf4ff8079b03 Mon Sep 17 00:00:00 2001 From: serjan-nasredin Date: Wed, 21 Feb 2024 23:44:15 +0500 Subject: [PATCH 2/3] docs(update): path to toit lsp --- docs/src/language_servers.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/src/language_servers.md b/docs/src/language_servers.md index 18da241b3..5fcedf925 100644 --- a/docs/src/language_servers.md +++ b/docs/src/language_servers.md @@ -719,8 +719,21 @@ Follow installation instructions on [LSP-terraform](https://github.com/sublimels ## Toit -Install the [Toit](https://packagecontrol.io/packages/Toit) package from Package Control for syntax highlighting. -Follow installation instructions on [LSP-toit](https://github.com/toitlang/toit/tree/master/tools/lsp/server). +1. Install the [Toit](https://packagecontrol.io/packages/Toit) package from Package Control for syntax highlighting. +2. Install the [Jaguar](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 From d3afa713ba6f0b78ebafafc13dcbd2cf8bc5c01d Mon Sep 17 00:00:00 2001 From: serjan-nasredin Date: Mon, 4 Mar 2024 00:27:13 +0500 Subject: [PATCH 3/3] update(doc): lsp toit corrected --- docs/src/language_servers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/language_servers.md b/docs/src/language_servers.md index 5fcedf925..41162b1ac 100644 --- a/docs/src/language_servers.md +++ b/docs/src/language_servers.md @@ -720,7 +720,7 @@ Follow installation instructions on [LSP-terraform](https://github.com/sublimels ## Toit 1. Install the [Toit](https://packagecontrol.io/packages/Toit) package from Package Control for syntax highlighting. -2. Install the [Jaguar](https://github.com/toitlang/jaguar) +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