Skip to content

Commit

Permalink
fix(indent): adjust default vimtex_indent_conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
lervag committed Apr 7, 2021
1 parent 7f572b9 commit 5f94ff5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload/vimtex/options.vim
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function! vimtex#options#init() abort " {{{1
call s:init_option('vimtex_indent_bib_enabled', 1)
call s:init_option('vimtex_indent_tikz_commands', 1)
call s:init_option('vimtex_indent_conditionals', {
\ 'open': '\v%(\\newif)@<!\\if%(field|name|numequal|thenelse)@!',
\ 'open': '\v%(\\newif)@<!\\if%(f>|field|name|numequal|thenelse)@!',
\ 'else': '\\else\>',
\ 'close': '\\fi\>',
\})
Expand Down
2 changes: 1 addition & 1 deletion doc/vimtex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,7 @@ OPTIONS *vimtex-options*

Default value: >
let g:vimtex_indent_conditionals = {
\ 'open': '\v%(\\newif)@<!\\if%(field|name|numequal|thenelse)@!',
\ 'open': '\v%(\\newif)@<!\\if%(f>|field|name|numequal|thenelse)@!',
\ 'else': '\\else\>',
\ 'close': '\\fi\>',
\}
Expand Down

0 comments on commit 5f94ff5

Please sign in to comment.