Skip to content

Commit

Permalink
fix(config): type filter was broken for telescope symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 27, 2024
1 parent c901640 commit e3075b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lazyvim/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3075b0

Please sign in to comment.