fix(builtin.treesitter): make sure that kind is not nil

If kind is nil then prefilter throws an error
fix #1631
This commit is contained in:
Simon Hauser
2022-01-09 19:03:53 +01:00
parent 01426c491b
commit e8ef88bfcb

View File

@@ -252,7 +252,7 @@ local function prepare_match(entry, kind)
local entries = {}
if entry.node then
entry["kind"] = kind
entry["kind"] = vim.F.if_nil(kind, "")
table.insert(entries, entry)
else
for name, item in pairs(entry) do