famiu/feline.nvim

[Bug] Error when running PackerSync when using custom providers

agorgl opened this issue · 3 comments

Having some custom_providers in my feline configuration, bellow error pops up each time I do PackerSync

"./lua/plugins.lua" 107L, 2628C written
packer.nvim: Error running config for feline.nvim: vim/_meta.lua:170: Vim:Feline: error while adding provider: Provider 'git_branch_dir' already exists! Please try using another name
famiu commented

it's probably an issue with Packer trying to reload the Feline lua modules, causing an error since Feline lua modules are not designed with reloadability in mind

Yep can confirm. Just tried calling packer.init({auto_reload_compiled = false}) and I no longer get this problem.
It is just a shame that feline does not work with reload, before using custom providers I did not had this problem

famiu commented

Should be fixed now in the develop branch