Is this a bug? #356
-
I randomly get this error after updating plugins in Lazy and restarting neovim:
If I restart again the error goes away. Here's my plugin definition: https://github.com/augustocdias/dotfiles/blob/main/.config/nvim/lua/plugins/lsp.lua |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You have a circular lua require. Here you load There, you load There you load Lua can't handle circular dependencies. |
Beta Was this translation helpful? Give feedback.
You have a circular lua require.
Here you load
setup.lsp
https://github.com/augustocdias/dotfiles/blob/cde2bc9b5460dad89911ab7fac73adc335f03b49/.config/nvim/lua/plugins/lsp.lua#L26
There, you load
lspconfig
https://github.com/augustocdias/dotfiles/blob/cde2bc9b5460dad89911ab7fac73adc335f03b49/.config/nvim/lua/setup/lsp/init.lua#L1
There you load
setup.lsp
againhttps://github.com/augustocdias/dotfiles/blob/cde2bc9b5460dad89911ab7fac73adc335f03b49/.config/nvim/lua/plugins/lsp.lua#L12
Lua can't handle circular dependencies.