Skip to content

Extra level of indentation in tikzpictures #1960

@IngoMeyer441

Description

@IngoMeyer441

Hey and thanks for this fantastic vim plugin! 😄 vimtex is great for working with LaTeX documents but I found a minor issue regarding the indentation rules in tikz pictures. Consider this minimal example:

\documentclass{scrreprt}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
    \node at (0, 0) {
        \includegraphics{logo.png}
    };
\end{tikzpicture}
\end{document}

Every time I enter } to close the \includegraphics command, vimtex adds one extra level of indentation although the command is already indented. I tried to understand what s:indent_delims does but I am not quite sure how it works or could be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions