Source indent file during reloading

This commit is contained in:
Karl Yngve Lervåg 2016-02-23 21:03:53 +01:00
parent 8d10513da3
commit 8c170061d3
2 changed files with 7 additions and 0 deletions

View File

@ -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']])

View File

@ -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