feat: disable kind_filter for markdown and help

This commit is contained in:
Folke Lemaitre
2023-10-15 22:34:42 +02:00
parent 57b504b9e8
commit 782fe0bef0
2 changed files with 21 additions and 9 deletions

View File

@ -12,14 +12,20 @@ return {
symbols = {},
symbol_blacklist = {},
}
local filter = Config.kind_filter
for kind, symbol in pairs(defaults.symbols) do
opts.symbols[kind] = {
icon = Config.icons.kinds[kind] or symbol.icon,
hl = symbol.hl,
}
if not vim.tbl_contains(Config.kind_filter.default, kind) then
table.insert(opts.symbol_blacklist, kind)
if type(filter) == "table" then
filter = filter.default
if type(filter) == "table" then
for kind, symbol in pairs(defaults.symbols) do
opts.symbols[kind] = {
icon = Config.icons.kinds[kind] or symbol.icon,
hl = symbol.hl,
}
if not vim.tbl_contains(filter, kind) then
table.insert(opts.symbol_blacklist, kind)
end
end
end
end
return opts