From 5dc929682255c3cdc80b954364f9b638dc216d12 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Fri, 3 Nov 2023 09:41:37 +0100 Subject: [PATCH] Added Astro.js LSP in Helix config --- editor/helix/languages.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/editor/helix/languages.toml b/editor/helix/languages.toml index 9d91cd1..be19235 100644 --- a/editor/helix/languages.toml +++ b/editor/helix/languages.toml @@ -5,6 +5,16 @@ roots = ["pyproject.toml", "setup.py", "Poetry.lock", ".git"] auto-format = true formatter = {command = 'black', args = ["--quiet", "-"]} +[language-server.astro-ls] +command = "astro-ls" +args = ["--stdio"] +config = {typescript = {tsdk = "/home/gaspard/.local/share/fnm/node-versions/v18.18.2/installation/lib/node_modules/typescript/lib"}, environment = "node"} + +[[language]] +name = "astro" +auto-format = true +language-servers = [ "astro-ls" ] + [[language]] name = "html" formatter = { command = 'prettier', args = ["--parser", "html"] }