mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
fix(fzf): symbols filter
This commit is contained in:
parent
056042b221
commit
7e0ac6850b
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue