fix unnecessary whitespace

This commit is contained in:
raf 2024-12-20 03:55:52 +00:00 committed by GitHub
parent 6e2f84ebf9
commit 48c64cfa3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,16 +22,13 @@
ts_ls = { ts_ls = {
package = pkgs.typescript-language-server; package = pkgs.typescript-language-server;
lspConfig = '' lspConfig = ''
lspconfig.ts_ls.setup {
lspconfig.ts_ls.setup { capabilities = capabilities,
capabilities = capabilities; on_attach = function(client, bufnr)
on_attach = ( attach_keymaps(client, bufnr);
function (client, bufnr) client.server_capabilities.documentFormattingProvider = false;
attach_keymaps(client, bufnr); end,
client.server_capabilities.documentFormattingProvider = false; cmd = ${
end
) ,
cmd = ${
if isList cfg.lsp.package if isList cfg.lsp.package
then expToLua cfg.lsp.package then expToLua cfg.lsp.package
else ''{"${cfg.lsp.package}/bin/typescript-language-server", "--stdio"}'' else ''{"${cfg.lsp.package}/bin/typescript-language-server", "--stdio"}''