Skip to content

Commit

Permalink
fix: filter out the unlisted buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
liangkarl committed Jan 27, 2024
1 parent 990ce5f commit 05ebc44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/sidebar-nvim/builtin/buffers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ local function get_buffers(ctx)
ignored = true
end

if vim.bo[buffer].buflisted ~= true then
ignored = true
end

-- always ignore terminals
if config.buffers.ignore_terminal and string.match(bufname, "term://.*") then
ignored = true
Expand Down

0 comments on commit 05ebc44

Please sign in to comment.