Source indent file during reloading
This commit is contained in:
parent
8d10513da3
commit
8c170061d3
@ -170,6 +170,12 @@ if !exists('s:reloading_script')
|
||||
let s:initialized = 0
|
||||
call vimtex#init()
|
||||
|
||||
" Reload indent file
|
||||
if exists('b:did_vimtex_indent')
|
||||
unlet b:did_indent
|
||||
runtime indent/tex.vim
|
||||
endif
|
||||
|
||||
call vimtex#echo#formatted([
|
||||
\ 'vimtex: ', ['VimtexWarning', 'reloaded']])
|
||||
|
||||
|
@ -8,6 +8,7 @@ if exists('b:did_indent')
|
||||
finish
|
||||
endif
|
||||
let b:did_indent = 1
|
||||
let b:did_vimtex_indent = 1
|
||||
|
||||
call vimtex#util#set_default('g:vimtex_indent_enabled', 1)
|
||||
if !g:vimtex_indent_enabled | finish | endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user