Allow g:vimwiki_listsyms be larger than 5 elements (Issue #275) (#279)

* Allow g:vimwiki_listsyms to be of arbitrary size

* Update documentation

* Add support for arbitrary size listsyms to vimwikihtml
This commit is contained in:
Michael F. Schönitzer
2017-01-22 20:16:10 +01:00
committed by EinfachToll
parent 3a87437005
commit c857be2f87
7 changed files with 17 additions and 14 deletions

View File

@ -860,7 +860,11 @@ function! s:process_tag_list(line, lists) "{{{
let chk = matchlist(a:line, a:rx_list)
if !empty(chk) && len(chk[1]) > 0
let completion = index(g:vimwiki_listsyms_list, chk[1])
if completion >= 0 && completion <=4
let n = len(g:vimwiki_listsyms_list)
if completion == 0
let st_tag = '<li class="done0">'
elseif completion > 0 && completion < n
let completion = float2nr(round(completion / (n-1.0) * 3.0 + 0.5 ))
let st_tag = '<li class="done'.completion.'">'
endif
endif