mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:244f01658f9c
runtime(markdown): Fix folding of code blocks
244f01658f
Co-authored-by: Tim Pope <code@tpope.net>
This commit is contained in:
parent
7709597a1d
commit
51c22b9321
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin
|
" Vim filetype plugin
|
||||||
" Language: Markdown
|
" Language: Markdown
|
||||||
" Maintainer: Tim Pope <https://github.com/tpope/vim-markdown>
|
" Maintainer: Tim Pope <https://github.com/tpope/vim-markdown>
|
||||||
" Last Change: 2022 Oct 13
|
" Last Change: 2023 Dec 28
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -35,7 +35,7 @@ if !exists("g:no_plugin_maps") && !exists("g:no_markdown_maps")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
function! s:NotCodeBlock(lnum) abort
|
function! s:NotCodeBlock(lnum) abort
|
||||||
return synIDattr(synID(a:lnum, 1, 1), 'name') !=# 'markdownCode'
|
return synIDattr(synID(a:lnum, 1, 1), 'name') !=# 'markdownCodeBlock'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! MarkdownFold() abort
|
function! MarkdownFold() abort
|
||||||
|
Loading…
Reference in New Issue
Block a user