From 706371f1300e7c0acb98b346f80dad2dd9b5f679 Mon Sep 17 00:00:00 2001 From: Josh Bode Date: Mon, 25 Jul 2022 03:47:47 +0000 Subject: [PATCH] add check for nil on documentation.value (#1091) --- lua/cmp/entry.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/cmp/entry.lua b/lua/cmp/entry.lua index 889baa552..c38513bbd 100644 --- a/lua/cmp/entry.lua +++ b/lua/cmp/entry.lua @@ -442,7 +442,7 @@ entry.get_documentation = function(self) value = value, }) end - elseif type(documentation) == 'table' and documentation.value ~= '' then + elseif type(documentation) == 'table' and not misc.empty(documentation.value) then local value = str.trim(documentation.value) if value ~= '' then table.insert(documents, {