-
Notifications
You must be signed in to change notification settings - Fork 64
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
lua init.vim error #172
Comments
这个是从原来的配置更新过来的,还是新部署的? 还有 cd ~/.local/share/nvim/lazy/hydra.nvim && git log 看看,我现在用的 hydra 的 v1.0.2 |
兄弟,给点反馈啊 |
这个新安装的就有这个错误吗? |
嗯 是的 第一次安装报错, checkout 到tag v1.0.2 也会报错 |
有点奇怪,我在 nixos 中新安装的没有问题,我有时间在 ubuntu 虚拟机中安装测试下 |
找到原因了,应该使用 release 分支来编译安装: git clone https://github.com/neovim/neovim && cd neovim
# 选择 release 分支
git branch -a
git checkout release-0.10
# 编译
make CMAKE_BUILD_TYPE=Release -j8
# 安装
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Error detected while processing /home/maomao/.dotfiles/nvim/init.vim:
line 23:
E5108: Error executing lua vim/shared.lua:0: s: expected string, got number
stack traceback:
[C]: in function 'error'
vim/shared.lua: in function 'validate'
vim/shared.lua: in function 'startswith'
vim/_init_packages.lua: in function '__index'
vim/shared.lua: in function 'islist'
vim/shared.lua: in function ''
vim/shared.lua: in function 'tbl_deep_extend'
...ocal/share/nvim/lazy/hydra.nvim/lua/hydra/layer/init.lua:116: in function 'initialize'
...local/share/nvim/lazy/hydra.nvim/lua/hydra/lib/class.lua:14: in function 'Layer'
...mao/.local/share/nvim/lazy/hydra.nvim/lua/hydra/init.lua:440: in function '_setup_pink_hydra'
...mao/.local/share/nvim/lazy/hydra.nvim/lua/hydra/init.lua:282: in function 'initialize'
...local/share/nvim/lazy/hydra.nvim/lua/hydra/lib/class.lua:14: in function 'Hydra'
/home/maomao/.config/nvim/lua/usr/hydra.lua:4: in main chunk
[C]: in function 'require'
/home/maomao/.config/nvim/lua/usr/init.lua:6: in main chunk
[C]: in function 'require'
[string ":lua"]:1: in main chunk
Error detected while processing VimEnter Autocommands for "*":
Error executing lua callback: ...al/share/nvim/lazy/persisted.nvim/lua/persisted/init.lua:44: attempt to index upvalue 'config' (a nil value)
stack traceback:
...al/share/nvim/lazy/persisted.nvim/lua/persisted/init.lua:44: in function <...al/share/nvim/lazy/persisted.nvim/lua/persisted/init.lua:37>
nvim --version
NVIM v0.11.0-dev-864f25d
Build type: Release
LuaJIT 2.1.1731601260
Run "nvim -V1 -v" for more info
Operating System
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
checkhealth screenshot
The text was updated successfully, but these errors were encountered: