bug: Utils.has
does not work as expected for non-lazy users
#1041
Labels
bug
Something isn't working
Utils.has
does not work as expected for non-lazy users
#1041
Describe the bug
The implementation of
Utils.has
is as follows:avante.nvim/lua/avante/utils/init.lua
Lines 25 to 32 in 078e931
For non-lazy.nvim users this checks if the provided module is part of the
package.loaded
table.However, a module is only inserted into this table after it has been
require
d, but it's possible that avante.nvim is loaded before the specified module tohas
has been required, but that module might still be in theruntimepath
and thus is accessible if needed.I believe
:h runtime-search-path
provides a better alternative, specifically:To reproduce
No response
Expected behavior
No response
Installation method
n/a
Environment
n/a
Repro
No response
The text was updated successfully, but these errors were encountered: