You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NVIM v0.10.1 Build type: Release LuaJIT 2.1.1713484068 Run "nvim -V1 -v" for more info
Operating System / Version
Windows 11 Pro x64
Describe the Bug
I tend to toggle neo-tree open with a keyboard shortcut (F3 from my old CUA days is a hard habit to break). Here's the procedure I follow to evince what seems to me like a bug:
Open nvim with a single file specified on the command line.
Hit F3 to toggle neo-tree (it appears in a new left pane). Open a second file using neo-tree.
Issue the :bd command.
With two files open like that, I would think deleting the buffer that's open in the right pane would leave neo-tree open on the left and the original file from the command line open on the right. What actually happens with close_if_last_window set to true is that Neovim exits completely. And I believe it's neo-tree doing that for two reasons: (1) changing close_if_last_window to false stops it from happening, as does (2) if I toggle the neo-tree pane closed before the :bd command. Serious question: am I wrong in that initial expectation? Seems like this might be a bug.
Screenshots, Traceback
No response
Steps to Reproduce
Open nvim with a single file specified on the command line.
Hit F3 to toggle neo-tree (it appears in a new left pane). Open a second file using neo-tree.
Issue the :bd command.
Expected Behavior
I expected my :bd command to delete the buffer I'm seeing, leaving neo-tree open in the left pane but now showing the second file open in the right pane. nvim-config-folder-2024-10-11_2012.zip
Your Configuration
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
-- add any other plugins here
}
localneotree_config= {
"nvim-neo-tree/neo-tree.nvim",
dependencies= { "MunifTanjim/nui.nvim", "nvim-tree/nvim-web-devicons", "nvim-lua/plenary.nvim" },
cmd= { "Neotree" },
keys= {
{ "<Leader>e", "<Cmd>Neotree<CR>" }, -- change or remove this line if relevant.
},
opts= {
-- Your config here-- ...
},
}
table.insert(plugins, neotree_config)
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here-- Sorry, gang, I don't know how to produce a "minimal init.lua to reproduce this issue". I'm attaching an archive of my entire %LOCALAPPDATA%\nvim folder instead.
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim Version (nvim -v)
NVIM v0.10.1 Build type: Release LuaJIT 2.1.1713484068 Run "nvim -V1 -v" for more info
Operating System / Version
Windows 11 Pro x64
Describe the Bug
I tend to toggle neo-tree open with a keyboard shortcut (F3 from my old CUA days is a hard habit to break). Here's the procedure I follow to evince what seems to me like a bug:
With two files open like that, I would think deleting the buffer that's open in the right pane would leave neo-tree open on the left and the original file from the command line open on the right. What actually happens with
close_if_last_window
set to true is that Neovim exits completely. And I believe it's neo-tree doing that for two reasons: (1) changingclose_if_last_window
to false stops it from happening, as does (2) if I toggle the neo-tree pane closed before the:bd
command. Serious question: am I wrong in that initial expectation? Seems like this might be a bug.Screenshots, Traceback
No response
Steps to Reproduce
Expected Behavior
I expected my
:bd
command to delete the buffer I'm seeing, leaving neo-tree open in the left pane but now showing the second file open in the right pane.nvim-config-folder-2024-10-11_2012.zip
Your Configuration
The text was updated successfully, but these errors were encountered: