From 6dcabaf9dc2b269eb11324fd7ebe91fffc704b32 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Mon, 21 Oct 2024 21:28:52 +0200 Subject: [PATCH] helix/languages.nix: add typescript --- modules/programs/editors/helix/languages.nix | 56 ++++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/modules/programs/editors/helix/languages.nix b/modules/programs/editors/helix/languages.nix index a5dcd53..9d51eb7 100644 --- a/modules/programs/editors/helix/languages.nix +++ b/modules/programs/editors/helix/languages.nix @@ -110,34 +110,34 @@ in { }; }; - # typescript-language-server = { - # command = getExe pkgs.nodePackages.typescript-language-server; - # args = ["--stdio"]; - # config = let - # inlayHints = { - # includeInlayEnumMemberValueHints = true; - # includeInlayFunctionLikeReturnTypeHints = true; - # includeInlayFunctionParameterTypeHints = true; - # includeInlayParameterNameHints = "all"; - # includeInlayParameterNameHintsWhenArgumentMatchesName = true; - # includeInlayPropertyDeclarationTypeHints = true; - # includeInlayVariableTypeHints = true; - # }; - # in { - # typescript-language-server.source = { - # addMissingImports.ts = true; - # fixAll.ts = true; - # organizeImports.ts = true; - # removeUnusedImports.ts = true; - # sortImports.ts = true; - # }; - # - # typescript = {inherit inlayHints;}; - # javascript = {inherit inlayHints;}; - # - # hostInfo = "helix"; - # }; - # }; + typescript-language-server = { + command = getExe pkgs.typescript-language-server; + args = ["--stdio"]; + config = let + inlayHints = { + includeInlayEnumMemberValueHints = true; + includeInlayFunctionLikeReturnTypeHints = true; + includeInlayFunctionParameterTypeHints = true; + includeInlayParameterNameHints = "all"; + includeInlayParameterNameHintsWhenArgumentMatchesName = true; + includeInlayPropertyDeclarationTypeHints = true; + includeInlayVariableTypeHints = true; + }; + in { + typescript-language-server.source = { + addMissingImports.ts = true; + fixAll.ts = true; + organizeImports.ts = true; + removeUnusedImports.ts = true; + sortImports.ts = true; + }; + + typescript = {inherit inlayHints;}; + javascript = {inherit inlayHints;}; + + hostInfo = "helix"; + }; + }; # vscode-css-language-server = { # command = "${pkgs.nodePackages.vscode-langservers-extracted}/bin/vscode-css-languageserver";