From 368820d8847b3bbcd9a13515cf4a121826253fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Fri, 25 Nov 2016 20:36:46 +0100 Subject: [PATCH] Initialize script when loaded --- autoload/vimtex/labels.vim | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) 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