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:
@@ -252,7 +252,7 @@ local function prepare_match(entry, kind)
|
|||||||
local entries = {}
|
local entries = {}
|
||||||
|
|
||||||
if entry.node then
|
if entry.node then
|
||||||
entry["kind"] = kind
|
entry["kind"] = vim.F.if_nil(kind, "")
|
||||||
table.insert(entries, entry)
|
table.insert(entries, entry)
|
||||||
else
|
else
|
||||||
for name, item in pairs(entry) do
|
for name, item in pairs(entry) do
|
||||||
|
|||||||
Reference in New Issue
Block a user