We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
buflisted
1 parent faf585f commit b5e08beCopy full SHA for b5e08be
lua/fzf-lua/providers/buffers.lua
@@ -26,7 +26,7 @@ local filter_buffers = function(opts, unfiltered)
26
local bufnrs = vim.tbl_filter(function(b)
27
if not vim.api.nvim_buf_is_valid(b) then
28
excluded[b] = true
29
- elseif not opts.show_unlisted and vim.fn.buflisted(b) ~= 1 then
+ elseif not opts.show_unlisted and b ~= core.CTX().bufnr and vim.fn.buflisted(b) ~= 1 then
30
31
elseif not opts.show_unloaded and not vim.api.nvim_buf_is_loaded(b) then
32
0 commit comments