AstroNvim / AstroNvim

AstroNvim is an aesthetic and feature-rich neovim config that is extensible and easy to use with a great set of plugins
https://AstroNvim.com
GNU General Public License v3.0
12.31k stars 913 forks source link

Lazy not loading plugins/user.lua #1785

Closed Theeoi closed 1 year ago

Theeoi commented 1 year ago

Checklist

Operating system/version

Manjaro 22.1.0

Terminal/GUI

Konsole 22.12.3

AstroNvim Health

astronvim: require("astronvim.health").check()

AstroNvim ~

Describe the bug

User plugins added as instructed by the user_example repo are not loaded properly. The new plugins are installed by Lazy.nvim and can be viewed through :Lazy.

Have tried using two plugins with a plugins/user.lua file as:

return {
  {"lervag/vimtex"},
  {"ThePrimeagen/vim-be-good"},
}

neither plugin is loaded.

Steps to Reproduce

  1. Make a clean install of AstroNvim with a user config as the user_example.
  2. Add a plugin in the plugins/user.lua file in the lazy syntax.
  3. Reload AstroNvim and install the plugins :Lazy install

Expected behavior

The plugins working.

For the two plugins in the example one would expect :h vimtex to display the proper documentation and :VimBeGood to start the game.

Screenshots

No response

Additional Context

No response

mehalter commented 1 year ago

You need to add lazy = false to plugins that you don't want to set up lazy loading for.

mehalter commented 1 year ago

Here are the relevant docs: https://astronvim.com/Recipes/custom_plugins

Theeoi commented 1 year ago

Can't believe I missed that.. Thank you!