prettify small
This commit is contained in:
@@ -476,6 +476,7 @@ function! s:get_default_wikilocal() abort
|
|||||||
\ 'auto_toc': {'type': type(0), 'default': 0, 'min': 0, 'max': 1},
|
\ 'auto_toc': {'type': type(0), 'default': 0, 'min': 0, 'max': 1},
|
||||||
\ 'automatic_nested_syntaxes': {'type': type(0), 'default': 1, 'min': 0, 'max': 1},
|
\ 'automatic_nested_syntaxes': {'type': type(0), 'default': 1, 'min': 0, 'max': 1},
|
||||||
\ 'base_url': {'type': type(''), 'default': '', 'min_length': 1},
|
\ 'base_url': {'type': type(''), 'default': '', 'min_length': 1},
|
||||||
|
\ 'bullet_types': {'type': type([]), 'default': []},
|
||||||
\ 'color_dic': {'type': type({}), 'default': {
|
\ 'color_dic': {'type': type({}), 'default': {
|
||||||
\ 'default': ['', '#d79921'],
|
\ 'default': ['', '#d79921'],
|
||||||
\ 'red': ['#cc241d', ''],
|
\ 'red': ['#cc241d', ''],
|
||||||
@@ -497,6 +498,7 @@ function! s:get_default_wikilocal() abort
|
|||||||
\ 'css_name': {'type': type(''), 'default': 'style.css', 'min_length': 1},
|
\ 'css_name': {'type': type(''), 'default': 'style.css', 'min_length': 1},
|
||||||
\ 'custom_wiki2html': {'type': type(''), 'default': ''},
|
\ 'custom_wiki2html': {'type': type(''), 'default': ''},
|
||||||
\ 'custom_wiki2html_args': {'type': type(''), 'default': ''},
|
\ 'custom_wiki2html_args': {'type': type(''), 'default': ''},
|
||||||
|
\ 'cycle_bullets': {'type': type(0), 'default': 0},
|
||||||
\ 'diary_frequency': {'type': type(''), 'default': 'daily', 'possible_values': ['daily', 'weekly', 'monthly', 'yearly']},
|
\ 'diary_frequency': {'type': type(''), 'default': 'daily', 'possible_values': ['daily', 'weekly', 'monthly', 'yearly']},
|
||||||
\ 'diary_start_week_day': {'type': type(''), 'default': 'monday', 'possible_values': ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']},
|
\ 'diary_start_week_day': {'type': type(''), 'default': 'monday', 'possible_values': ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']},
|
||||||
\ 'diary_header': {'type': type(''), 'default': 'Diary', 'min_length': 1},
|
\ 'diary_header': {'type': type(''), 'default': 'Diary', 'min_length': 1},
|
||||||
@@ -506,8 +508,6 @@ function! s:get_default_wikilocal() abort
|
|||||||
\ 'diary_sort': {'type': type(''), 'default': 'desc', 'possible_values': ['asc', 'desc']},
|
\ 'diary_sort': {'type': type(''), 'default': 'desc', 'possible_values': ['asc', 'desc']},
|
||||||
\ 'exclude_files': {'type': type([]), 'default': []},
|
\ 'exclude_files': {'type': type([]), 'default': []},
|
||||||
\ 'ext': {'type': type(''), 'default': '.wiki', 'min_length': 1},
|
\ 'ext': {'type': type(''), 'default': '.wiki', 'min_length': 1},
|
||||||
\ 'bullet_types': {'type': type([]), 'default': []},
|
|
||||||
\ 'cycle_bullets': {'type': type(0), 'default': 0},
|
|
||||||
\ 'html_filename_parameterization': {'type': type(0), 'default': 0, 'min': 0, 'max': 1},
|
\ 'html_filename_parameterization': {'type': type(0), 'default': 0, 'min': 0, 'max': 1},
|
||||||
\ 'generated_links_caption': {'type': type(0), 'default': 0 },
|
\ 'generated_links_caption': {'type': type(0), 'default': 0 },
|
||||||
\ 'index': {'type': type(''), 'default': 'index', 'min_length': 1},
|
\ 'index': {'type': type(''), 'default': 'index', 'min_length': 1},
|
||||||
|
|||||||
@@ -193,14 +193,16 @@ function! VimwikiFoldLevel(lnum) abort
|
|||||||
" Header/section folding...
|
" Header/section folding...
|
||||||
if line =~# vimwiki#vars#get_syntaxlocal('rxHeader') && !vimwiki#u#is_codeblock(a:lnum)
|
if line =~# vimwiki#vars#get_syntaxlocal('rxHeader') && !vimwiki#u#is_codeblock(a:lnum)
|
||||||
return '>'.vimwiki#u#count_first_sym(line)
|
return '>'.vimwiki#u#count_first_sym(line)
|
||||||
|
endif
|
||||||
|
|
||||||
" Code block folding...
|
" Code block folding...
|
||||||
elseif line =~# vimwiki#vars#get_syntaxlocal('rxPreStart')
|
if line =~# vimwiki#vars#get_syntaxlocal('rxPreStart')
|
||||||
return 'a1'
|
return 'a1'
|
||||||
elseif line =~# vimwiki#vars#get_syntaxlocal('rxPreEnd')
|
elseif line =~# vimwiki#vars#get_syntaxlocal('rxPreEnd')
|
||||||
return 's1'
|
return 's1'
|
||||||
else
|
|
||||||
return '='
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
return '='
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user