Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

总是报错如下信息 : 貌似是没有检测到 lazy , 反复 :luafile ~/.config/nvim/init.lua 也没用 #24

Open
Daleveral opened this issue Jun 18, 2024 · 1 comment

Comments

@Daleveral
Copy link

Error detected while processing /root/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /root/.config/nvim/init.lua:21: module 'lazy' not found:
no field package.preload['lazy']
no file './lazy.lua'
no file '/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1/lazy.lua'
no file '/usr/local/share/lua/5.1/lazy.lua'
no file '/usr/local/share/lua/5.1/lazy/init.lua'
no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/lazy.lua'
no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/lazy/init.lua'
no file './lazy.so'
no file '/usr/local/lib/lua/5.1/lazy.so'
no file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/lazy.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/root/.config/nvim/init.lua:21: in main chunk
Press ENTER or type command to continue

@RookieOHY
Copy link

可能是网络问题:init.lua 中有拉取lazy.nvim的代码。但是如果没有拉取下拉的话(网络或者代理问题),就会报错。我也是出现了2次该错误,但是第三次直接可以拉取了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants