Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Close Icon doesn't work properly, when nvim-tree or neo-tree is visible #711

Closed
1 task done
apettel opened this issue Mar 12, 2023 · 1 comment
Closed
1 task done
Labels
duplicate This issue or pull request already exists wontfix This will not be worked on

Comments

@apettel
Copy link

apettel commented Mar 12, 2023

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

After clicking the close icon when multiple files are open, another file buffer should be visible. But instead of this behaviour, bufferline is invisible and only neo-tree or nvim-tree is visible.

What did you expect to happen?

Bufferline is visible and the file left of the closed tab is visible.

Config

I use the default LazyVim-Config:

{
"akinsho/bufferline.nvim",
event = "VeryLazy",
keys = {
{ "bp", "BufferLineTogglePin", desc = "Toggle pin" },
{ "bP", "BufferLineGroupClose ungrouped", desc = "Delete non-pinned buffers" },
},
opts = {
options = {
diagnostics = "nvim_lsp",
always_show_bufferline = false,
diagnostics_indicator = function(_, _, diag)
local icons = require("lazyvim.config").icons.diagnostics
local ret = (diag.error and icons.Error .. diag.error .. " " or "")
.. (diag.warning and icons.Warn .. diag.warning or "")
return vim.trim(ret)
end,
offsets = {
{
filetype = "neo-tree",
text = "Neo-tree",
highlight = "Directory",
text_align = "left",
},
},
},
},
}

Additional Information

...

commit

No response

@apettel apettel added the bug Something isn't working label Mar 12, 2023
@akinsho
Copy link
Owner

akinsho commented Mar 12, 2023

@apettel this is not a bug but how neovim works by default. The file explorer is not a special window but a normal one so when you run a normal bdelete command which is what the close icon does by default it closes the window leaving only neo-tree. If you don't want this to happen you should configure your close command to use a plugin that doesn't mess up your windows, but that is up to you to configure

@akinsho akinsho closed this as completed Mar 12, 2023
@akinsho akinsho added duplicate This issue or pull request already exists wontfix This will not be worked on and removed bug Something isn't working labels Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants