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
Showing some error messages on NvimTree Close #1962
Comments
I was running this same NvimTree and Neovim version a few up until today and didn't ever have this issue. Can you confirm that this still happens when running Neovim along with the minimal config? |
@tjex Yes, the issue still persists, actually previously when I run |
Ok. Regarding nvim not opening by default when launching at a directory, I also made an issue about that #1965 , and was pointed to read #1669 , which outlines it is no longer a default function and needs to be addressed on a user by user basis. Are you sure it's creating a file called '.' though? But on the error on closing, I can't help much. Just trying to filter out options for the maintainer. |
The close failure is quite concerning; we are trying to close an apparently valid window. Possibilities:
Confirming: are you running with an nvt-min.lua or with your full nvim setup? |
I can replicate this with those autocommands. I tried another arbitrarily selected plugin https://github.com/liuchengxu/vista.vim and it fails, differently.
I'm not sure what you're trying to do here; what is the purpose of those autocommands? With understanding we can resolve this. |
Apparently, it's something to do with folds: https://stackoverflow.com/questions/2142402/code-folding-is-not-saved-in-my-vimrc I'm not sure if it's reasonable to expect it to fail, or if this is something that should be fixed. Just decided to leave the reason for my (similar) issue here, as it may help OP to debug his. No real issues for me though. |
These autocommands need some filtering; they can't reasonably apply to all buffers i.e. not regular file buffers. Closing this one as it is not nvim-tree specific. |
Description
Some Error messages showing up when trying to close NvimTree when no file is opened
Neovim version
Operating system and version
Ubuntu 22.04
nvim-tree version
215b29b
Minimal config
Steps to reproduce
Expected behavior
No response
Actual behavior
No response
The text was updated successfully, but these errors were encountered: