Skip to content

Commit

Permalink
doc: minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
lervag committed Apr 6, 2021
1 parent b31d4e3 commit be2d3b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion autoload/vimtex/options.vim
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ function! vimtex#options#init() abort " {{{1
call s:init_option('vimtex_syntax_conceal_default', 1)
call s:init_option('vimtex_syntax_conceal', {
\ 'accents': g:vimtex_syntax_conceal_default,
\ 'cites': g:vimtex_syntax_conceal_default,
\ 'fancy': g:vimtex_syntax_conceal_default,
\ 'greek': g:vimtex_syntax_conceal_default,
\ 'math_bounds': g:vimtex_syntax_conceal_default,
Expand All @@ -278,7 +279,6 @@ function! vimtex#options#init() abort " {{{1
\ 'math_super_sub': g:vimtex_syntax_conceal_default,
\ 'math_symbols': g:vimtex_syntax_conceal_default,
\ 'styles': g:vimtex_syntax_conceal_default,
\ 'cites': g:vimtex_syntax_conceal_default,
\})
call s:init_option('vimtex_syntax_conceal_cites', {
\ 'type': 'brackets',
Expand Down
10 changes: 5 additions & 5 deletions doc/vimtex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2044,6 +2044,10 @@ OPTIONS *vimtex-options*
Replace TeX accents into the accented character, e.g. `\aa` --> å. This
will also replace a few ligatures.

cites~
Conceal LaTeX cite commands such as `\citet[...]{ref00}`. The conceal
style is specified by |g:vimtex_syntax_conceal_cites|.

fancy~
Some extra fancy replacements, e.g. `\item` --> ○.

Expand All @@ -2063,7 +2067,7 @@ OPTIONS *vimtex-options*
`\Biggl\langle ... \Biggr\rangle` --> `〈 ... 〉`

math_fracs~
Replace some simple fractions like `\frac 1 2` --> ½.
Replace some simple fractions like `\frac 1 2` --> ½.

math_super_sub~
Replace simple math super and sub operators, e.g. `x^2` --> `x²`.
Expand All @@ -2079,10 +2083,6 @@ OPTIONS *vimtex-options*

`\emph{text here}` --> `text here`

cites~
Conceal LaTeX cite commands such as `\citet[...]{ref00}`. The conceal
style is specified by |g:vimtex_syntax_conceal_cites|.

Default value: All keys set to |g:vimtex_syntax_conceal_default|.

*g:vimtex_syntax_conceal_cites*
Expand Down
2 changes: 1 addition & 1 deletion test/test-syntax/test-conceal.tex
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
\textit{test}
\textsl{test}
$4 \mathit{x} = \mathbf{test}$
$\mathrm{Re} = \cdots
$\mathrm{Re} = \cdots$

\end{document}

0 comments on commit be2d3b7

Please sign in to comment.