From be5bf0cdaac863767b982f4e33ada5d4b0e750ed Mon Sep 17 00:00:00 2001 From: lijing00333 Date: Fri, 15 Dec 2023 23:41:46 +0800 Subject: [PATCH] bugfix --- autoload/easycomplete/ui.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/easycomplete/ui.vim b/autoload/easycomplete/ui.vim index 910e2f4a..7ce23df9 100644 --- a/autoload/easycomplete/ui.vim +++ b/autoload/easycomplete/ui.vim @@ -45,12 +45,13 @@ function! easycomplete#ui#ApplyMarkdownSyntax(winid) \ "matchgroup=Conceal end=/\%(``\)\@!`/ containedin=TOP concealends"],"") let original_filetype = getwinvar(a:winid, "&filetype") if has("nvim") + let local_filetype = has("nvim-0.10.0-dev") ? "txt" : "help" let exec_cmd = [ \ "hi helpCommand cterm=underline gui=underline ctermfg=White guifg=White", \ "silent! syntax clear NewCodeBlock", \ regin_cmd, \ "hi! link NewCodeBlock helpCommand", - \ "let &filetype='help'", + \ "let &filetype='" . local_filetype . "'", \ ] else let exec_cmd = [