vimwiki
vimwiki copied to clipboard
Bug: Folding not functioning properly in `list` mode
Branch: dev
Revision: 78a41b7
syntax: markdown
my .vimrc settings:
Plug 'vimwiki/vimwiki', { 'branch': 'dev' }
let g:vimwiki_list = [{'path': '~/Dropbox/Apps/notes_/vimwiki/',
\ 'syntax': 'markdown', 'ext': '.md'}]
let g:vimwiki_folding = 'list' "list, expr
let g:vimwiki_map_prefix = '<Leader>W'
nmap <Leader>WW <Plug>VimwikiIndex
Folding is not functioning properly in list mode (I believe I had similar issues with expr but I haven't test it). The issue is caused by the code block but it does not seem to matter that it is a code block per se. It seems to be caused by the indentation level at that point.
To reproduce:
## Testing
* list item 1
* list item 2
* bla bla bla
* and now for some code
```
"this is some code".postln;
```
* list item 3
* lalalal
* dadada
* bababa
* list item 4
* list item 5
Folding behaves like so:

Nice report. Is is a bug, you cannot do much, maybe you best chance make a PR or help other do one by commenting here because it is well defined and isolated. That for the feedback
Actually, some I ewperience some inconsistencies with list too, autonumering after ident ... yours is a good place to start