Fix tikz indentation (#271)
This commit is contained in:
parent
1bcc8e1bc2
commit
169d9764f4
@ -118,7 +118,7 @@ function! VimtexIndent() " {{{1
|
|||||||
let ind += &sw
|
let ind += &sw
|
||||||
let s:tikz_indented += 1
|
let s:tikz_indented += 1
|
||||||
endif
|
endif
|
||||||
if s:tikz_indented > 0 && pline =~# ';\s*$'
|
if s:tikz_indented > 0 && pline =~# ';'
|
||||||
let ind -= &sw
|
let ind -= &sw
|
||||||
let s:tikz_indented -= 1
|
let s:tikz_indented -= 1
|
||||||
endif
|
endif
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
\documentclass{minimal}
|
\documentclass{minimal}
|
||||||
|
\usepackage{amsmath}
|
||||||
|
\usepackage{tikz}
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
|
\tikz \fill[green] rectangle (0.5,0.5); Something
|
||||||
|
about something.
|
||||||
|
|
||||||
\begin{align}
|
\begin{align}
|
||||||
2+2=4
|
2+2=4
|
||||||
\end{align}
|
\end{align}
|
||||||
|
Loading…
Reference in New Issue
Block a user