liuchengxu / vista.vim

:cactus: Viewer & Finder for LSP symbols and tags
https://liuchengxu.github.io/vista.vim
MIT License
1.88k stars 89 forks source link

Markdown Toc raise Error #429

Closed cstsunfu closed 2 years ago

cstsunfu commented 2 years ago

Describe the bug

When I use the buildin :Vista toc for markdown file, will raise an error

Error detected while processing function vista#[18]..vista#sidebar#Toggle[4]..vista#sidebar#Open[6]..vista#toc#Run[11]..<SNR>158_TryRunExtension[9]..vista#extension#markdown#Execute[4]..vista#renderer#markdown_like#MD[2]..<SNR>163_MD[1]..<SNR>163_BuildRo
w:
line    2:
E684: list index out of range: 0
E116: Invalid arguments for function s:Join

Use :Vista ctags works but ugly.

Environment:

Vista info

Error detected while processing function vista#[18]..vista#sidebar#Toggle[4]..vista#sidebar#Open[6]..vista#toc#Run[11]..<SNR>158_TryRunExtension[9]..vista#extension#markdown#Execute[4]..vista#renderer#markdown_like#MD[2]..<SNR>163_MD[1]..<SNR>163_BuildRo
w:
line    2:
E684: list index out of range: 0
E116: Invalid arguments for function s:Join