Fix minor bug

This commit is contained in:
Karl Yngve Lervåg 2016-04-11 20:56:03 +02:00
parent eb48452c79
commit d5e62ca646

View File

@ -20,7 +20,7 @@ function! s:map(mode, lhs, rhs, ...)
endif
endfunction
if g:vimtex_toc_enabled
if get(g:, 'vimtex_toc_enabled', 1)
command! -buffer VimtexTocOpen call vimtex#toc#open()
command! -buffer VimtexTocToggle call vimtex#toc#toggle()
nnoremap <buffer> <plug>(vimtex-toc-open) :call vimtex#toc#open()<cr>