From 48c64cfa3b652495cc9705e5414010af46f8a8d1 Mon Sep 17 00:00:00 2001 From: raf Date: Fri, 20 Dec 2024 03:55:52 +0000 Subject: [PATCH] fix unnecessary whitespace --- modules/plugins/languages/ts.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/modules/plugins/languages/ts.nix b/modules/plugins/languages/ts.nix index b3e04702..2530d352 100644 --- a/modules/plugins/languages/ts.nix +++ b/modules/plugins/languages/ts.nix @@ -22,16 +22,13 @@ ts_ls = { package = pkgs.typescript-language-server; lspConfig = '' - - lspconfig.ts_ls.setup { - capabilities = capabilities; - on_attach = ( - function (client, bufnr) - attach_keymaps(client, bufnr); - client.server_capabilities.documentFormattingProvider = false; - end - ) , - cmd = ${ + lspconfig.ts_ls.setup { + capabilities = capabilities, + on_attach = function(client, bufnr) + attach_keymaps(client, bufnr); + client.server_capabilities.documentFormattingProvider = false; + end, + cmd = ${ if isList cfg.lsp.package then expToLua cfg.lsp.package else ''{"${cfg.lsp.package}/bin/typescript-language-server", "--stdio"}''