File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,7 @@ function! vimtex#options#init() abort " {{{1
339339 \ ' ligatures' : 1 ,
340340 \ ' cites' : 1 ,
341341 \ ' fancy' : 1 ,
342+ \ ' texTabularChar' : 1 ,
342343 \ ' spacing' : 1 ,
343344 \ ' greek' : 1 ,
344345 \ ' math_bounds' : 1 ,
Original file line number Diff line number Diff line change @@ -704,6 +704,11 @@ function! vimtex#syntax#core#init_rules() abort " {{{1
704704 call s: match_conceal_fancy ()
705705 endif
706706
707+ " Conceal tabular characters
708+ if g: vimtex_syntax_conceal .texTabularChar
709+ syntax match texTabularChar " \\\\ " conceal cchar =⏎
710+ endif
711+
707712 " Conceal spacing commands
708713 if g: vimtex_syntax_conceal .spacing
709714 call s: match_conceal_spacing ()
@@ -2488,7 +2493,6 @@ function! s:match_conceal_fancy() abort " {{{1
24882493 syntax match texCmd " \% #=1\\ dots\> " conceal cchar =…
24892494 syntax match texCmd " \% #=1\\ slash\> " conceal cchar =/
24902495 syntax match texCmd " \% #=1\\ ldots\> " conceal cchar =…
2491- syntax match texTabularChar " \\\\ " conceal cchar =⏎
24922496
24932497 syntax match texCmdItem " \% #=1\\ item\> " conceal cchar =○
24942498 \ nextgroup= texItemLabelConcealed
Original file line number Diff line number Diff line change @@ -2519,6 +2519,9 @@ OPTIONS *vimtex-options*
25192519 fancy ~
25202520 Some extra fancy replacements, e.g. `\i tem` --> ○.
25212521
2522+ texTabularChar ~
2523+ Conceal tabular line breaks, i.e. `\\ ` --> `⏎` .
2524+
25222525 spacing ~
25232526 Conceal spacing commands such as `\q uad` and `\h space{1 em}` in both
25242527 normal mode and math mode.
@@ -2569,6 +2572,7 @@ OPTIONS *vimtex-options*
25692572 \ 'ligatures' : 1,
25702573 \ 'cites' : 1,
25712574 \ 'fancy' : 1,
2575+ \ 'texTabularChar': 1,
25722576 \ 'spacing' : 1,
25732577 \ 'greek' : 1,
25742578 \ 'math_bounds': 1,
You can’t perform that action at this time.
0 commit comments