From 7cc311ac92a764082e123dbb3a233f08549767fe Mon Sep 17 00:00:00 2001 From: anon Date: Sun, 1 Oct 2023 21:42:05 +0200 Subject: [PATCH] clean up after ourselves --- hitags.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hitags.vim b/hitags.vim index e05e4ae..1455ecf 100644 --- a/hitags.vim +++ b/hitags.vim @@ -45,12 +45,21 @@ function! HiTagsUpdate() endif endfunction +function! HiTagsClean() + syn clear HiTagSpecial + syn clear HiTagFunction + syn clear HiTagType + syn clear HiTagConstant + syn clear HiTagIdentifier +endfunction + function! HiTagsHighlight() execute 'source ' . s:tags_script endfunction function! HiTagsDo() call HiTagsUpdate() + call HiTagsClean() call HiTagsHighlight() endfunction @@ -60,6 +69,14 @@ if exists('g:hitags_events') execute "autocmd " . e . " * HiTagsDo" endfor endif + +hi link HiTagSpecial Special +hi link HiTagFunction Function +hi link HiTagType Type +hi link HiTagConstant Constant +hi link HiTagIdentifier Identifier + command! HiTagsUpdate :call HiTagsUpdate() +command! HiTagsClean :call HiTagsClean() command! HiTagsHighlight :call HiTagsHighlight() command! HiTagsDo :call HiTagsDo()