From dc285fbd98c88d266ff65ac7a0b98da8e71a558b Mon Sep 17 00:00:00 2001 From: RGBCube Date: Mon, 7 Apr 2025 02:01:54 +0300 Subject: [PATCH] fix: deno lsp for (t/j)sx? --- modules/common/helix.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/common/helix.nix b/modules/common/helix.nix index e98d5e0..7ab820c 100644 --- a/modules/common/helix.nix +++ b/modules/common/helix.nix @@ -1,5 +1,5 @@ { config, lib, pkgs, ... }: let - inherit (lib) attrValues const enabled genAttrs mapAttrs mkAfter mkIf; + inherit (lib) attrValues const elem enabled genAttrs mapAttrs mkAfter mkIf optionalAttrs; in { environment = { variables.EDITOR = "hx"; @@ -59,6 +59,8 @@ in { auto-format = true; formatter.command = "deno"; formatter.args = [ "fmt" "--unstable-component" "--ext" extension "-" ]; + } // optionalAttrs (elem name [ "javascript" "jsx" "typescript" "tsx" ]) { + language-servers = [ "deno" ]; }) |> attrValues; in formattedLanguages ++ [