mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-14 14:33:50 -05:00
Update latex-box and elixir
This commit is contained in:
@@ -153,13 +153,15 @@ function! LatexBox_FoldLevel(lnum)
|
||||
endif
|
||||
endfor
|
||||
|
||||
" Never fold \end{document}
|
||||
if line =~# '^\s*\\end{document}'
|
||||
return 0
|
||||
endif
|
||||
|
||||
" Fold environments
|
||||
if g:LatexBox_fold_envs == 1
|
||||
if line =~# s:envbeginpattern
|
||||
return "a1"
|
||||
elseif line =~# '^\s*\\end{document}'
|
||||
" Never fold \end{document}
|
||||
return 0
|
||||
elseif line =~# s:envendpattern
|
||||
return "s1"
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user