mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 06:47:28 +08:00
Load vimtex only when the extension is enabled
Do not force loading the full vimtex autoload script for all users. First check if the extension is enabled.
This commit is contained in:
parent
c7fb175d35
commit
c3434164b2
|
@ -334,10 +334,12 @@ function! airline#extensions#load()
|
||||||
call add(loaded_ext, 'obsession')
|
call add(loaded_ext, 'obsession')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
runtime autoload/vimtex.vim
|
if get(g:, 'airline#extensions#vimtex#enabled', 1)
|
||||||
if (get(g:, 'airline#extensions#vimtex#enabled', 1)) && exists('*vimtex#init')
|
runtime autoload/vimtex.vim
|
||||||
call airline#extensions#vimtex#init(s:ext)
|
if exists('*vimtex#init')
|
||||||
call add(loaded_ext, 'vimtex')
|
call airline#extensions#vimtex#init(s:ext)
|
||||||
|
call add(loaded_ext, 'vimtex')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if (get(g:, 'airline#extensions#cursormode#enabled', 0))
|
if (get(g:, 'airline#extensions#cursormode#enabled', 0))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user