LazyVim / starter

Starter template for LazyVim
Apache License 2.0
944 stars 750 forks source link

Not working with LazyVim 9 #33

Closed Martin1887 closed 1 year ago

Martin1887 commented 1 year ago

The following error happens with LazyVim 9.x versions:

Failed to load `lazyvim.plugins.core`

...ocal/share/nvim/lazy/Lazyvim/lua/lazyvim/config/init.lua:271: attempt to index field 'LazyVim' (a nil value)

# stacktrace:
  - /Lazyvim/lua/lazyvim/config/init.lua:271 _in_ **init**
  - /Lazyvim/lua/lazyvim/plugins/core.lua:1
  - ~/.config/nvim/lua/config/lazy.lua:9
  - nvim/init.lua:2

The error is in this line:

vim.opt.rtp:append(require("lazy.core.config").spec.plugins.LazyVim.dir)

It seems a problem in the require("lazy").setup code block of lua/config/lazy.lua.

Thanks.

folke commented 1 year ago

Fixed in https://github.com/LazyVim/LazyVim/pull/1628

A new release will be live in a minute or so