From 523986df4b06028c00f9ba564fececc80aadbfce Mon Sep 17 00:00:00 2001 From: Amit Beka Date: Sun, 15 Nov 2020 14:21:41 +0200 Subject: [PATCH] enable strikethrough for Neovim (#1054) Neovim has a different method of marking applied patches, using neovim versions, since patches from Vim are not merged by chronological order. Signed-off-by: Amit Beka <---> Co-authored-by: Amit Beka <---> --- doc/vimwiki.txt | 1 + syntax/vimwiki.vim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt index 73c1b01..6e15d2f 100644 --- a/doc/vimwiki.txt +++ b/doc/vimwiki.txt @@ -3895,6 +3895,7 @@ Changed:~ Removed:~ Fixed:~ + * Enable strikethrough for Neovim * Issue #1029: Fix: error loading plugin when lang uses comma instead of dot as decimal separator * Issue #886: :VimwikiGenerateLinks not working on Windows diff --git a/syntax/vimwiki.vim b/syntax/vimwiki.vim index a623350..10edf20 100644 --- a/syntax/vimwiki.vim +++ b/syntax/vimwiki.vim @@ -437,7 +437,7 @@ hi def link VimwikiTag Keyword " Deleted called strikethrough " See $VIMRUTIME/syntax/html.vim -if v:version > 800 || v:version == 800 && has('patch1038') +if v:version > 800 || (v:version == 800 && has('patch1038')) || has('nvim-0.4.3') hi def VimwikiDelText term=strikethrough cterm=strikethrough gui=strikethrough else hi def link VimwikiDelText Constant