hardhackerlabs / oh-my-nvim

A theme-driven, out-of-the-box modern configuration of neovim (HardHackerNvim)💎
https://hardhacker.com
Apache License 2.0
458 stars 32 forks source link

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

Open Daleveral opened 4 months ago

Daleveral commented 4 months ago

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 commented 2 months ago

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