snacks.nvim
snacks.nvim copied to clipboard
bug: (explorer) multiple errors when selecting a file from explorer and then closing explorer with '<space>e'
Did you check docs and existing issues?
- [x] I have read all the snacks.nvim docs
- [x] I have updated the plugin to the latest version before submitting this issue
- [x] I have searched the existing issues of snacks.nvim
- [x] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.11.0-dev-1664+ge71d2c817d
Operating system/version
MacOS Sequoia 15.3
Describe the bug
I get the following error messages when closing explorer after selecting a file:
Error executing vim.schedule lua callback: ...re/nvim/lazy/snacks.nvim/lua/snacks/picker/core/list.lua:199: attempt to index field 'picker' (a nil value)
stack traceback:
...re/nvim/lazy/snacks.nvim/lua/snacks/picker/core/list.lua:199: in function '_move'
...re/nvim/lazy/snacks.nvim/lua/snacks/picker/core/list.lua:219: in function 'move'
...re/nvim/lazy/snacks.nvim/lua/snacks/picker/core/list.lua:102: in function 'view'
...m/lazy/snacks.nvim/lua/snacks/picker/source/explorer.lua:91: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Steps To Reproduce
- I start neovim.
- Type '
e' to open the snacks.explorer. - Search for any file such as index.html.
- Select the file, index.html.
- Then type '
e' to close explorer.
Expected Behavior
Shouldn't get the error messages.
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{ "folke/snacks.nvim", opts = {} },
-- add any other plugins here
},
})
Clarification: when I describe the keystrokes, I should have said I type 'leader e'.