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:
parent
403890ebfa
commit
dc285fbd98
1 changed files with 3 additions and 1 deletions
|
@ -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 ++ [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue