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.
This commit is contained in:
Luke Naylor 2025-03-25 15:36:48 +00:00 committed by GitHub
parent 408e157d0f
commit 5aba5e1b3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,