mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 02:27:44 +00:00
fix: deno lsp for (t/j)sx?
This commit is contained in:
parent
403890ebfa
commit
dc285fbd98
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
{ config, lib, pkgs, ... }: let
|
{ 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 {
|
in {
|
||||||
environment = {
|
environment = {
|
||||||
variables.EDITOR = "hx";
|
variables.EDITOR = "hx";
|
||||||
|
@ -59,6 +59,8 @@ in {
|
||||||
auto-format = true;
|
auto-format = true;
|
||||||
formatter.command = "deno";
|
formatter.command = "deno";
|
||||||
formatter.args = [ "fmt" "--unstable-component" "--ext" extension "-" ];
|
formatter.args = [ "fmt" "--unstable-component" "--ext" extension "-" ];
|
||||||
|
} // optionalAttrs (elem name [ "javascript" "jsx" "typescript" "tsx" ]) {
|
||||||
|
language-servers = [ "deno" ];
|
||||||
})
|
})
|
||||||
|> attrValues;
|
|> attrValues;
|
||||||
in formattedLanguages ++ [
|
in formattedLanguages ++ [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue