diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-05-20 16:59:09 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-05-20 16:59:09 +0200 |
commit | a688c66a049b12e7b19f6ab4cb27c5a24dc3d52c (patch) | |
tree | 4f21330aa69ea67c4b32ad89918034e375bd1e1c /autoload/vimtex.vim | |
parent | 0a7c62b3b22a75f91245a718c1409e4216ae61c8 (diff) | |
download | vim-polyglot-a688c66a049b12e7b19f6ab4cb27c5a24dc3d52c.tar.gz vim-polyglot-a688c66a049b12e7b19f6ab4cb27c5a24dc3d52c.zip |
Update
Diffstat (limited to 'autoload/vimtex.vim')
-rw-r--r-- | autoload/vimtex.vim | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/autoload/vimtex.vim b/autoload/vimtex.vim index abd5adc1..e16a2ae3 100644 --- a/autoload/vimtex.vim +++ b/autoload/vimtex.vim @@ -247,6 +247,7 @@ function! vimtex#init_options() abort " {{{1 \ ], \ } \}) + call s:init_option('vimtex_syntax_autoload_packages', ['amsmath']) call s:init_option('vimtex_texcount_custom_arg', '') @@ -257,7 +258,10 @@ function! vimtex#init_options() abort " {{{1 call s:init_option('vimtex_toc_enabled', 1) call s:init_option('vimtex_toc_custom_matchers', []) call s:init_option('vimtex_toc_show_preamble', 1) - call s:init_option('vimtex_toc_todo_keywords', ['TODO', 'FIXME']) + call s:init_option('vimtex_toc_todo_labels', { + \ 'TODO': 'TODO: ', + \ 'FIXME': 'FIXME: ' + \}) call s:init_option('vimtex_toc_config', { \ 'name' : 'Table of contents (vimtex)', \ 'mode' : 1, @@ -324,6 +328,7 @@ function! vimtex#init_options() abort " {{{1 call s:init_option('vimtex_view_skim_activate', 0) call s:init_option('vimtex_view_skim_reading_bar', 1) call s:init_option('vimtex_view_zathura_options', '') + call s:init_option('vimtex_view_zathura_check_libsynctex', 1) endfunction " }}}1 @@ -332,18 +337,11 @@ function! vimtex#check_plugin_clash() abort " {{{1 let l:latexbox = !empty(filter(copy(l:scriptnames), "v:val =~# 'latex-box'")) if l:latexbox - let l:polyglot = !empty(filter(copy(l:scriptnames), "v:val =~# 'polyglot'")) call vimtex#log#warning([ \ 'Conflicting plugin detected: LaTeX-Box', \ 'vimtex does not work as expected when LaTeX-Box is installed!', \ 'Please disable or remove it to use vimtex!', \]) - if l:polyglot - call vimtex#log#warning([ - \ 'LaTeX-Box is included with vim-polyglot and may be disabled with:', - \ 'let g:polyglot_disabled = [''latex'']', - \]) - endif endif endfunction |