Closed Song-Tianxiang closed 2 months ago
Nice idea. We can ignore any file not to register into DB as we like. I will implement it.
I added ignore_register
option to achieve this. For example, you can ignore to register files that is 'nobuflisted'
.
telescope.setup {
extensions = {
frecency = {
ignore_register = function(bufnr)
return not vim.bo[bufnr].buflisted
end,
}
},
}
I want to ignore files that have set
nobuflisted
. How can I achieve this? Can we make ignore_pattern accept a function and give user more control.