Bracket Pairing - rzukic/zed-latex GitHub Wiki
This extension lets Zed know about the pairing of brackets, such as {
with }
and [
with ]
for command options, but also some multi-character things which are paired such as \left(
and \right)
, or environment delimiters \begin{x}
and \end{x}
. Note that brackets in mathematical expressions are not included (LaTeX does not really "pair" brackets, and does not have any issue with something like $x \in [0, 1)$
).
https://github.com/user-attachments/assets/844aae54-0582-48f8-a12f-ae212372830b
In practice at the moment, this gives visual indications of which delimiters surround the current cursor position (as shown in screen capture above). Also, with vim bindings, the "%" key will behave as expected with these extra paired delimiters ("brackets" as far as Zed is concerned).