summaryrefslogtreecommitdiffstats
path: root/ftplugin/latex-box/mappings.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/latex-box/mappings.vim')
-rw-r--r--ftplugin/latex-box/mappings.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/ftplugin/latex-box/mappings.vim b/ftplugin/latex-box/mappings.vim
index ccfb5d8d..7d2e0633 100644
--- a/ftplugin/latex-box/mappings.vim
+++ b/ftplugin/latex-box/mappings.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
" LaTeX Box mappings
if exists("g:LatexBox_no_mappings")
@@ -108,3 +105,4 @@ vnoremap <buffer> <silent> [[ :<c-u>call <SID>LatexBoxNextSection(0,1,1)<CR>
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+endif