Salt
e6f90a24d5
I keep fucking making these the wrong way and it's going to bite me in the ass. Submodules, self. SUBMODULES. SUBMODULES.
17 lines
426 B
VimL
17 lines
426 B
VimL
if exists('b:loaded_SimpylFold')
|
|
finish
|
|
endif
|
|
let b:loaded_SimpylFold = 1
|
|
|
|
call SimpylFold#BufferInit()
|
|
setlocal foldexpr=SimpylFold#FoldExpr(v:lnum)
|
|
setlocal foldmethod=expr
|
|
|
|
augroup SimpylFold
|
|
autocmd TextChanged,InsertLeave <buffer> call SimpylFold#Recache()
|
|
augroup END
|
|
|
|
if exists('g:SimpylFold_docstring_preview') && g:SimpylFold_docstring_preview
|
|
setlocal foldtext=foldtext()\ .\ SimpylFold#FoldText()
|
|
endif
|