Skip to content

Commit

Permalink
fix: don't create compiler state if disabled
Browse files Browse the repository at this point in the history
refer: #2905
  • Loading branch information
lervag committed Mar 28, 2024
1 parent fb7809f commit 3275a17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/vimtex/compiler.vim
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ endfunction

" }}}1
function! vimtex#compiler#init_state(state) abort " {{{1
if !g:vimtex_compiler_enabled | return | endif

let a:state.compiler = s:init_compiler({
\ 'file_info': {
\ 'root': a:state.root,
Expand Down

0 comments on commit 3275a17

Please sign in to comment.