Question: how to auto-close the `[No Name]` buffer after open another buffer?
linrongbin16 opened this issue · comments
I'm using bufferline.nvim with neo-tree.nvim, after open nvim without opening any file, the nvim looks like:
The left side is neo-tree, and there will be a [No Name]
buffer. I use fzf to find a file and open it with edit {filename}
command (for example config.lua
file in my nvim config repo):
Now I want to auto-close the [No Name]
buffer after I open another file/buffer.
Is there a way to do that?
@linrongbin16 this isn't really a bufferline issue, neovim is the one that opens this no name buffer and deciding to close it is something you'd do completely separate to this plugin all this plugin is doing in this case is highlighting that that buffer exists. You can probably use an autocommand to loop through your open buffers and close any without a name but that's really up to you in your config
thanks for suggestions