fix(config): type filter was broken for telescope symbols

This commit is contained in:
Folke Lemaitre
2024-03-27 15:04:22 +01:00
parent c901640167
commit e3075b05ef

View File

@ -221,6 +221,9 @@ function M.get_kind_filter(buf)
if M.kind_filter[ft] == false then
return
end
if type(M.kind_filter[ft]) == "table" then
return M.kind_filter[ft]
end
---@diagnostic disable-next-line: return-type-mismatch
return type(M.kind_filter) == "table" and type(M.kind_filter.default) == "table" and M.kind_filter.default or nil
end