From c23dd1757a34a4e96dc2e93b32b659e6b4aeb0d6 Mon Sep 17 00:00:00 2001 From: stnley <64174376+stnley@users.noreply.github.com> Date: Mon, 29 Jan 2024 00:21:19 -0500 Subject: [PATCH] Add strikethrough attribute support --- colors/dracula.vim | 6 ++++++ doc/dracula.txt | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/colors/dracula.vim b/colors/dracula.vim index 1725352..f810ed7 100644 --- a/colors/dracula.vim +++ b/colors/dracula.vim @@ -77,6 +77,10 @@ if !exists('g:dracula_italic') let g:dracula_italic = 1 endif +if !exists('g:dracula_strikethrough') + let g:dracula_strikethrough = 1 +endif + if !exists('g:dracula_underline') let g:dracula_underline = 1 endif @@ -107,6 +111,7 @@ endif let s:attrs = { \ 'bold': g:dracula_bold == 1 ? 'bold' : 0, \ 'italic': g:dracula_italic == 1 ? 'italic' : 0, + \ 'strikethrough': g:dracula_strikethrough == 1 ? 'strikethrough' : 0, \ 'underline': g:dracula_underline == 1 ? 'underline' : 0, \ 'undercurl': g:dracula_undercurl == 1 ? 'undercurl' : 0, \ 'inverse': g:dracula_inverse == 1 ? 'inverse' : 0, @@ -154,6 +159,7 @@ call s:h('DraculaBgDarker', s:none, s:bgdarker) call s:h('DraculaFg', s:fg) call s:h('DraculaFgUnderline', s:fg, s:none, [s:attrs.underline]) call s:h('DraculaFgBold', s:fg, s:none, [s:attrs.bold]) +call s:h('DraculaFgStrikethrough', s:fg, s:none, [s:attrs.strikethrough]) call s:h('DraculaComment', s:comment) call s:h('DraculaCommentBold', s:comment, s:none, [s:attrs.bold]) diff --git a/doc/dracula.txt b/doc/dracula.txt index 80e44f1..a1167a3 100644 --- a/doc/dracula.txt +++ b/doc/dracula.txt @@ -78,6 +78,10 @@ Include bold attributes in highlighting > Include italic attributes in highlighting > let g:dracula_italic = 1 +* *g:dracula_strikethrough* +Include strikethrough attributes in highlighting > + let g:dracula_strikethrough = 1 + * *g:dracula_underline* Include underline attributes in highlighting > let g:dracula_underline = 1