Initialize script when loaded
This commit is contained in:
parent
0ccb84fb27
commit
368820d884
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user