ZIm/assets
Luke Naylor 522abe8e59
Change default formatter settings for LaTeX (#28727)
Closes: https://github.com/rzukic/zed-latex/issues/77 

## Default formatter: `latexindent`
Before, formatting was delegated to the language server, which just ran
a `latexindent` executable. There was no benefit to running it through
the language server over running it as an "external" formatter in zed.
In fact this was an issue because there was no way to provide an
explicit path for the executable (causing above extension issue). Having
the default settings configure the formatter directly gives more control
to user and removes the number of indirections making it clearer how to
tweak things like the executable path, or extra CLI args, etc...

## Alternative: `prettier`
Default settings have also been added to allow prettier as the formatter
(by just setting `"formatter": "prettier"` in the "LaTeX" language
settings). This was not possible before because an extra line needed to
be added to the `prettier` crate (similarly to what was done for
https://github.com/zed-industries/zed/issues/19024) to find the plugin
correctly.
> [!NOTE]
> The `prettier-plugin-latex` node module also contained a
`dist/standalone.js` but using that instead of
`dist/prettier-plugin-latex.js` gave an error, and indeed the latter
worked as intended (along with its questionable choices for formatting).

Release Notes:

- LaTeX: added default `latexindent` formatter settings without relying
on `texlab`, as well as allowing `prettier` to be chosen for formatting

---------

Co-authored-by: Peter Tripp <peter@zed.dev>
2025-06-03 19:51:30 +00:00
..
fonts Fix font selection on macOS (#13615) 2024-06-27 17:02:45 -06:00
icons agent: Allow to accept and reject all via the panel (#31971) 2025-06-03 15:20:25 -03:00
images Add Zed Pro Trial Upsell (#29938) 2025-05-05 18:46:54 -04:00
keymaps agent: Allow to accept and reject all via the panel (#31971) 2025-06-03 15:20:25 -03:00
prompts Only include diagnostic instruction once (#29975) 2025-05-11 17:33:49 +02:00
settings Change default formatter settings for LaTeX (#28727) 2025-06-03 19:51:30 +00:00
sounds agent: Add sound notification when done generating (#31472) 2025-05-26 21:20:41 -03:00
themes theme: Make Gruvbox terminal ANSI magenta more vibrant (#27166) 2025-04-07 18:25:24 +00:00