1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 18:17:44 +00:00

fix: deno lsp for (t/j)sx?

This commit is contained in:
RGBCube 2025-04-07 02:01:54 +03:00
parent 403890ebfa
commit dc285fbd98
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -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 ++ [