Syntax: Emoji faster conceal with keyword

This commit is contained in:
Tinmarino
2020-08-09 21:22:04 -04:00
parent a1f1b9c290
commit a241d458ab
3 changed files with 11 additions and 9 deletions

View File

@ -347,12 +347,6 @@ let s:typeface_dic = vimwiki#vars#get_syntaxlocal('dTypeface')
call vimwiki#u#hi_typeface(s:typeface_dic)
" Emoji: :dog: (after tags to take precedence)
if and(vimwiki#vars#get_global('emoji_enable'), 1) != 0 && has('conceal')
call vimwiki#emoji#apply_conceal()
endif
" Link highlighting groups
""""""""""""""""""""""""""
@ -513,4 +507,11 @@ for u in syntax_dic.dTypeface.eq
\ . ' keepend oneline '. b:vimwiki_syntax_concealends
endfor
" Emoji: :dog: (after tags to take precedence, after nested to not be reset)
if and(vimwiki#vars#get_global('emoji_enable'), 1) != 0 && has('conceal')
call vimwiki#emoji#apply_conceal()
exe 'syn iskeyword '.&iskeyword.',-,:'
endif
syntax spell toplevel