fix(fzf): symbols filter
This commit is contained in:
@@ -16,7 +16,12 @@ LazyVim.pick._open = function(command, opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function symbols_filter(entry, ctx)
|
local function symbols_filter(entry, ctx)
|
||||||
ctx.symbols_filter = ctx.symbols_filter or require("lazyvim.config").get_kind_filter(ctx.bufnr)
|
if ctx.symbols_filter == nil then
|
||||||
|
ctx.symbols_filter = require("lazyvim.config").get_kind_filter(ctx.bufnr) or false
|
||||||
|
end
|
||||||
|
if ctx.symbols_filter == false then
|
||||||
|
return true
|
||||||
|
end
|
||||||
return vim.tbl_contains(ctx.symbols_filter, entry.kind)
|
return vim.tbl_contains(ctx.symbols_filter, entry.kind)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user