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
I am getting error below while trying execute: NvimTreeCollapseKeepBuffers
Error executing Lua callback: ...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:272: attempt to get length of local 'nodes' (a nil value)
stack traceback:
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:272: in function '_get_nodes_number'
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:285: in function 'build'
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:265: in function '_build_line'
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:289: in function 'build'
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:265: in function '_build_line'
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:289: in function 'build'
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:265: in function '_build_line'
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:289: in function 'build'
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:265: in function '_build_line'
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:289: in function 'build'
...cker/start/nvim-tree.lua/lua/nvim-tree/renderer/init.lua:78: in function 'draw'
...ua/lua/nvim-tree/actions/tree-modifiers/collapse-all.lua:41: in function 'fn'
...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:320: in function <...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:319>
Press ENTER or type command to continue
Neovim version
❯ nvim --version
NVIM v0.8.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.0/share/nvim"
Run :checkhealth for more info
vim.cmd[[set runtimepath=$VIMRUNTIME]]vim.cmd[[set packpath=/tmp/nvt-min/site]]localpackage_root="/tmp/nvt-min/site/pack"localinstall_path=package_root.."/packer/start/packer.nvim"localfunctionload_plugins()
require("packer").startup {
{
"wbthomason/packer.nvim",
"nvim-tree/nvim-tree.lua",
"nvim-tree/nvim-web-devicons",
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
},
config= {
package_root=package_root,
compile_path=install_path.."/plugin/packer_compiled.lua",
display= { non_interactive=true },
},
}
endifvim.fn.isdirectory(install_path) ==0thenprint"Installing nvim-tree and dependencies."vim.fn.system { "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path }
endload_plugins()
require("packer").sync()
vim.cmd[[autocmd User PackerComplete ++once echo "Ready!" | lua setup()]]vim.opt.termguicolors=truevim.opt.cursorline=true-- MODIFY NVIM-TREE SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE_G.setup=function()
require("nvim-tree").setup {}
end
Steps to reproduce
nvim -nu ~/dev/nvt-min.lua
NvimTreeOpen
Open any file in a tree
NvimTreeCollapseKeepBuffers
Expected behavior
Only open buffers are show in the tree
Actual behavior
Error:
Error executing Lua callback: ...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:272: attempt to get length of local 'nodes' (a nil value)
stack traceback:
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:272: in function '_get_nodes_number'
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:285: in function 'build'
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:265: in function '_build_line'
...r/start/nvim-tree.lua/lua/nvim-tree/renderer/builder.lua:289: in function 'build'
...cker/start/nvim-tree.lua/lua/nvim-tree/renderer/init.lua:76: in function 'draw'
...ua/lua/nvim-tree/actions/tree-modifiers/collapse-all.lua:41: in function 'fn'
...n/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:318: in function <...n/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:317>
Press ENTER or type command to continue
The text was updated successfully, but these errors were encountered:
Description
I am getting error below while trying execute:
NvimTreeCollapseKeepBuffers
Neovim version
Operating system and version
macOS 12.6 Monterey
nvim-tree version
fb8735e
Minimal config
Steps to reproduce
Expected behavior
Only open buffers are show in the tree
Actual behavior
Error:
The text was updated successfully, but these errors were encountered: