mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-10 02:43:48 -05:00
Also don't let HTML and dependent syntaxes change 'foldmethod'
References https://github.com/tpope/vim-markdown/issues/154
This commit is contained in:
@@ -12,12 +12,13 @@ if !exists('main_syntax')
|
|||||||
let main_syntax = 'markdown'
|
let main_syntax = 'markdown'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
runtime! syntax/html.vim
|
|
||||||
unlet! b:current_syntax
|
|
||||||
|
|
||||||
if has('folding')
|
if has('folding')
|
||||||
let s:foldmethod = &l:foldmethod
|
let s:foldmethod = &l:foldmethod
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
runtime! syntax/html.vim
|
||||||
|
unlet! b:current_syntax
|
||||||
|
|
||||||
if !exists('g:markdown_fenced_languages')
|
if !exists('g:markdown_fenced_languages')
|
||||||
let g:markdown_fenced_languages = []
|
let g:markdown_fenced_languages = []
|
||||||
endif
|
endif
|
||||||
@@ -35,8 +36,10 @@ for s:type in map(copy(g:markdown_fenced_languages),'matchstr(v:val,"[^=]*$")')
|
|||||||
endfor
|
endfor
|
||||||
unlet! s:type
|
unlet! s:type
|
||||||
unlet! s:done_include
|
unlet! s:done_include
|
||||||
|
|
||||||
if exists('s:foldmethod') && s:foldmethod !=# &l:foldmethod
|
if exists('s:foldmethod') && s:foldmethod !=# &l:foldmethod
|
||||||
let &l:foldmethod = s:foldmethod
|
let &l:foldmethod = s:foldmethod
|
||||||
|
unlet s:foldmethod
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !exists('g:markdown_minlines')
|
if !exists('g:markdown_minlines')
|
||||||
|
|||||||
Reference in New Issue
Block a user