Compare commits

...

3 commits

Author SHA1 Message Date
Yoni Firroloni
ba422b43bc
Merge 114b9b4121 into a0a57757a0 2024-12-15 22:28:50 +00:00
Yoni FIRROLONI
114b9b4121 ts formatting: remove useless indent 2024-12-16 09:28:29 +11:00
Yoni FIRROLONI
fbee50f036 ts_ls: prevent from formatting
prevent ts_ls from touching the formating.
2024-12-13 10:11:32 +11:00

View file

@ -22,10 +22,16 @@
ts_ls = {
package = pkgs.typescript-language-server;
lspConfig = ''
lspconfig.ts_ls.setup {
capabilities = capabilities;
on_attach = attach_keymaps,
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"}''
@ -79,6 +85,7 @@
ls_sources,
null_ls.builtins.formatting.prettier.with({
command = "${cfg.format.package}/bin/prettier",
filetypes = { "typescript" },
})
)
'';