diff --git a/autoload/vimtex/labels.vim b/autoload/vimtex/labels.vim index 35b5bca..9cf2980 100644 --- a/autoload/vimtex/labels.vim +++ b/autoload/vimtex/labels.vim @@ -8,21 +8,6 @@ function! vimtex#labels#init_options() " {{{1 call vimtex#util#set_default('g:vimtex_labels_enabled', 1) endfunction -" }}}1 -function! vimtex#labels#init_script() " {{{1 - call vimtex#util#set_highlight('VimtexLabelsHelp', 'helpVim') - call vimtex#util#set_highlight('VimtexLabelsLine', 'Todo') - call vimtex#util#set_highlight('VimtexLabelsChap', 'PreProc') - call vimtex#util#set_highlight('VimtexLabelsEq', 'Statement') - call vimtex#util#set_highlight('VimtexLabelsFig', 'Identifier') - call vimtex#util#set_highlight('VimtexLabelsSec', 'Type') - call vimtex#util#set_highlight('VimtexLabelsTab', 'String') - - if !g:vimtex_labels_enabled | return | endif - - let s:name = 'Table of labels (vimtex)' -endfunction - " }}}1 function! vimtex#labels#init_buffer() " {{{1 if !g:vimtex_labels_enabled | return | endif @@ -134,4 +119,18 @@ endfunction " }}}1 +" {{{1 Script initialization + +let s:name = 'Table of labels (vimtex)' + +call vimtex#util#set_highlight('VimtexLabelsHelp', 'helpVim') +call vimtex#util#set_highlight('VimtexLabelsLine', 'Todo') +call vimtex#util#set_highlight('VimtexLabelsChap', 'PreProc') +call vimtex#util#set_highlight('VimtexLabelsEq', 'Statement') +call vimtex#util#set_highlight('VimtexLabelsFig', 'Identifier') +call vimtex#util#set_highlight('VimtexLabelsSec', 'Type') +call vimtex#util#set_highlight('VimtexLabelsTab', 'String') + +" }}}1 + " vim: fdm=marker sw=2