Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 857fb1b

Browse files
committed
fix: error on neosnippets again
1 parent fb36f5a commit 857fb1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/completion/source/snippet.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ M.getNeosnippetItems = function(prefix)
4646
key = 'true'
4747
end
4848
local description
49-
if val == nil then description = nil else description = val.description end
49+
if val == nil or type(val) ~= "table" then description = nil else description = val.description end
5050
local user_data = {snippet_source = 'Neosnippet', hover = description}
5151
local item = {}
5252
item.word = key

0 commit comments

Comments
 (0)