Skip to content

Commit

Permalink
Disable unsupported 'strikethrough' attribute (#72)
Browse files Browse the repository at this point in the history
This change will get rid of warnings when used with older vim.

Support for the strikethrough attribute was added in vim v8.0.1038
Ref: https://github.com/vim/vim/releases/tag/v8.0.1038
  • Loading branch information
tumd authored Jan 6, 2024
1 parent b320793 commit 9fd0c81
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/default.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ call <sid>hi("Conditional", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("Constant", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Define", s:gui0E, "", s:cterm0E, "", "none", "")
call <sid>hi("Delimiter", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("Deprecated", "", "", "", "", "strikethrough", "")
if has("patch-8.0.1038")
call <sid>hi("Deprecated", "", "", "", "", "strikethrough", "")
endif
call <sid>hi("Float", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Function", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Identifier", s:gui05, "", s:cterm05, "", "none", "")
Expand Down Expand Up @@ -294,7 +296,9 @@ if has("nvim-0.8.0")
endif

" Standard highlights to be used by plugins
call <sid>hi("Deprecated", "", "", "", "", "strikethrough", "")
if has("patch-8.0.1038")
call <sid>hi("Deprecated", "", "", "", "", "strikethrough", "")
endif
call <sid>hi("SearchMatch", s:gui0C, "", s:cterm0C, "", "", "")

call <sid>hi("GitAddSign", s:gui0B, "", s:cterm0B, "", "", "")
Expand Down

0 comments on commit 9fd0c81

Please sign in to comment.