From 60e2960b37fa465f64b2f81f5a28fe162e183096 Mon Sep 17 00:00:00 2001 From: "shane.xb.qian" Date: Mon, 14 Nov 2022 18:00:09 +0800 Subject: [PATCH] fix: should check type of complete_item.doc --- autoload/lsp/completion.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 6d201bb..8138e56 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -352,7 +352,8 @@ def LspSetFileType() var cItem = item.user_data if cItem->type() != v:t_dict || !cItem->has_key('documentation') - || cItem.documentation.kind != 'markdown' + \ || cItem.documentation->type() != v:t_dict + \ || cItem.documentation.kind != 'markdown' return endif -- 2.48.1