Closed ghost closed 1 year ago
Related issues: #701 #742 (neither fixed the issue for me)
I had the same issue and after adding some debugging 'print' statements found that vim.fn.expand()
was not working properly, because I had set the wildignore
option to an incorrect string. It looks like your wildignore
string is not working either.
vim.fn.expand()
is used in various places by packer and, in my case, caused continuous warnings that xxx is an invalid plugin name!
after it had internally called util.get_plugin_short_name()
, which uses the vim.fn.expand()
function.
Thank you so much for sharing! It seems like this misconfigured wildignore
was the problem, and Packer is now working just fine (after clearing out nvim
directories in ~/.cache
and ~/.local
.
Thanks again, marking as closed! :)
nvim --version
: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
git version 2.33.0
[WARN Mon Oct 24 18:44:02 2022 9314769712666] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:214: "wbthomason/packer.nvim" is an invalid plugin name! [ERROR Mon Oct 24 18:44:04 2022 9317113092791] .../site/pack/packer/start/packer.nvim/lua/packer/async.lua:20: Error in coroutine: ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:630: attempt to index local 'display_win' (a nil value)