-
Notifications
You must be signed in to change notification settings - Fork 256
There are two [No Name]
buffer on the start
#305
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
Comments
I don't think those are from neo-tree. When I open with
|
@cseickel: You might want to take a look. To make it clear, I stop the recording at the last moment when the content of neo-tree floating window was about to be shown. These three buffers are:
And I assume this is related to neo-tree because this didn't happen some months before, and I didn't install any other file-tree-related plugins. demo.mov |
I think those extra buffers being displayed are the result of whatever tabline plugin you are using being out of sync. Run the |
I got this:
OK, this is possible. I'm using https://github.com/akinsho/bufferline.nvim, but I don't know how to check it. Do you also use this plugin? |
If it is showing the extra |
Actually, I take it back. I get the same thing when I change the default |
@cseickel: Really thank you! If you're busy with the other things it's OK to fix this after them, since I just made a little hot-fix for it. |
I suspect that this would cause a related problem in integrating with fzf-lua(ibhagwan/fzf-lua#390). But it's also possible that this is related to the bufferline.nvim plugin. The explanation for the following demo: If I change it from debug_2.movCurrent workaround: vim.keymap.set('n', ';', function ()
if vim.bo.filetype ~= 'neo-tree' then
vim.cmd('NeoNoNameClean') -- This will merge those `[No Name]` buffers into a single one
end
vim.cmd('Neotree float toggle reveal_force_cwd dir=' .. vim.fn.getcwd())
if vim.bo.filetype ~= 'neo-tree'
and not vim.api.nvim_buf_get_option(0, 'buflisted') then
vim.cmd('set buflisted') -- This will set the current buffer the one selected by fzf-lua.
end
end, NOREF_NOERR_TRUNC) |
@cseickel: Could you prioritize the fix of this issue? I assume the fix would be not that complicated. I encountered many little bugs related to this when interacting with some other plugins. Sorry for being hurry. |
@nyngwang I think this is fixed in |
@cseickel: Perfect! Let me close it now! |
As title. I use
nvim .
to start neovim from the current directory. It seems that this has been mentioned by people before but I forgot the keyword(s) to find the issue.The text was updated successfully, but these errors were encountered: