From 5aba5e1b3dbe41541c7efaaebbe935bc6a8cadd7 Mon Sep 17 00:00:00 2001 From: Luke Naylor Date: Tue, 25 Mar 2025 15:36:48 +0000 Subject: [PATCH] Add default settings for LaTeX (#27286) Closes https://github.com/rzukic/zed-latex/issues/70 where the language server `texlab` is not used for code formatting when the "cspell" extension is also installed, because it also provides a language server for the LaTeX filetype but only for spell checking. Release Notes: - Fix conflict between LaTeX and cspell extensions affecting code formatting on save. --- assets/settings/default.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/assets/settings/default.json b/assets/settings/default.json index e0b44d50e9..8f32ee8fb8 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -1258,6 +1258,14 @@ "allowed": true } }, + "LaTeX": { + "format_on_save": "on", + "formatter": "language_server", + "language_servers": ["texlab", "..."], + "prettier": { + "allowed": false + } + }, "Markdown": { "format_on_save": "off", "use_on_type_format": false,