mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +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
|
||||
|
||||
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)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue