From e94c4843b46a8ef17e6b23a85179bb1ec1412917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20S=2E=20=C5=81ukasiewicz?= Date: Sat, 4 Jan 2025 06:59:12 +0100 Subject: [PATCH] Add config for Helix editor (#1200) --- .helix/languages.toml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .helix/languages.toml diff --git a/.helix/languages.toml b/.helix/languages.toml new file mode 100644 index 00000000..6e24c383 --- /dev/null +++ b/.helix/languages.toml @@ -0,0 +1,43 @@ +# This file configures the Helix editor to use Deno for language support, +# instead of user defaults for JavaScript and TypeScript. Reproduced from: +# https://github.com/helix-editor/helix/wiki/Language-Server-Configurations#deno + +[[language]] +name = "javascript" +shebangs = ["deno"] +roots = ["deno.json", "deno.jsonc"] +file-types = ["js"] +language-servers = ["deno-lsp"] +auto-format = true +[[language]] +name = "typescript" +shebangs = ["deno"] +roots = ["deno.json", "deno.jsonc"] +file-types = ["ts"] +language-servers = ["deno-lsp"] +auto-format = true +[[language]] +name = "jsx" +shebangs = ["deno"] +roots = ["deno.json", "deno.jsonc"] +file-types = ["jsx"] +language-servers = ["deno-lsp"] +auto-format = true +[[language]] +name = "tsx" +shebangs = ["deno"] +roots = ["deno.json", "deno.jsonc"] +file-types = ["tsx"] +language-servers = ["deno-lsp"] +auto-format = true + + + +[language-server.deno-lsp] +command = "deno" +args = ["lsp"] +environment = { NO_COLOR = "1" } + +[language-server.deno-lsp.config.deno] +enable = true +suggest = { completeFunctionCalls = false, imports = { hosts = { "https://deno.land" = true } } }