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

This commit is contained in:
Folke Lemaitre committed 2024-03-27 15:04:41 +01:00
1 parent c901640167
commit e3075b05ef
1 file changed
+3
+3
View File
@@ -221,6 +221,9 @@ function M.get_kind_filter(buf)
if M.kind_filter[ft] == false then if M.kind_filter[ft] == false then
return return
end end
if type(M.kind_filter[ft]) == "table" then
return M.kind_filter[ft]
end
---@diagnostic disable-next-line: return-type-mismatch ---@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 return type(M.kind_filter) == "table" and type(M.kind_filter.default) == "table" and M.kind_filter.default or nil
end end