mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-29 06:12:10 +08:00
Add vimtex support
Indicates: - whether the file is considered to be main or local - whether the viewer is opened - whether the compilation is running - whether the compilation is continuous Added: * `vimtex` existence check * variables documentation TODO: readme and a screenshot Update readme.md Update doc Update screenshot url
This commit is contained in:
@@ -310,6 +310,12 @@ function! airline#extensions#load()
|
||||
call add(loaded_ext, 'obsession')
|
||||
endif
|
||||
|
||||
runtime autoload/vimtex.vim
|
||||
if (get(g:, 'airline#extensions#vimtex#enabled', 1)) && exists('*vimtex#init')
|
||||
call airline#extensions#vimtex#init(s:ext)
|
||||
call add(loaded_ext, 'vimtex')
|
||||
endif
|
||||
|
||||
if !get(g:, 'airline#extensions#disable_rtp_load', 0)
|
||||
" load all other extensions, which are not part of the default distribution.
|
||||
" (autoload/airline/extensions/*.vim outside of our s:script_path).
|
||||
|
||||
Reference in New Issue
Block a user