From 97c7aa8ea82f322457412c2fcb8d71adbef9cbca Mon Sep 17 00:00:00 2001 From: Santosh Bandichode Date: Sun, 13 Nov 2022 15:09:43 +0530 Subject: [PATCH] Check for dict type before checking for keys --- autoload/lsp/completion.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 1c5e702..e539e0e 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -354,7 +354,7 @@ def LspSetFileType() endif var cItem = item.user_data - if !cItem->has_key('documentation') || cItem->type() != v:t_dict + if cItem->type() != v:t_dict || !cItem->has_key('documentation') || cItem.documentation.kind != 'markdown' return endif -- 2.48.1