Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Change default formatter settings for LaTeX (#28727)

Luke Naylor522abe8e599c
diff --git a/assets/settings/default.json b/assets/settings/default.json
index d4bfc4e9f75..2fb9e38eb4c 100644
--- a/assets/settings/default.json
+++ b/assets/settings/default.json
@@ -1497,11 +1497,11 @@
}
},
"LaTeX": {
- "format_on_save": "on",
"formatter": "language_server",
"language_servers": ["texlab", "..."],
"prettier": {
- "allowed": false
+ "allowed": true,
+ "plugins": ["prettier-plugin-latex"]
}
},
"Markdown": {
diff --git a/crates/prettier/src/prettier.rs b/crates/prettier/src/prettier.rs
index ea5bd7317d4..983ef5458df 100644
--- a/crates/prettier/src/prettier.rs
+++ b/crates/prettier/src/prettier.rs
@@ -343,6 +343,8 @@ impl Prettier {
prettier_plugin_dir.join("plugin.js"),
// this one is for @prettier/plugin-php
prettier_plugin_dir.join("standalone.js"),
+ // this one is for prettier-plugin-latex
+ prettier_plugin_dir.join("dist").join("prettier-plugin-latex.js"),
prettier_plugin_dir,
]
.into_iter()