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

Error while calling lua chunk #329

Open
mirjr opened this issue Nov 27, 2023 · 7 comments
Open

Error while calling lua chunk #329

mirjr opened this issue Nov 27, 2023 · 7 comments

Comments

@mirjr
Copy link

mirjr commented Nov 27, 2023

Hi all, when I download the repository and run nvim I get this error message. How to fix this?

Error detected while processing /home/xnitry/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/xnitry/.config/nvim/lua/user/keymaps
.lua:6: attempt to index field 'keymap' (a nil value)
stack traceback:
        /home/xnitry/.config/nvim/lua/user/keymaps.lua:6: in main chunk
        [C]: in function 'require'
        /home/xnitry/.config/nvim/init.lua:2: in main chunk
Press ENTER or type command to continue

@eMKa94
Copy link

eMKa94 commented Dec 8, 2023

Same issue. 22.04.1-Ubuntu SMP PREEMPT_DYNAMIC 6.2.0-37-generic

@eMKa94
Copy link

eMKa94 commented Dec 8, 2023

@mirjr
In my case the issue was caused by installing not the most recent release of neovim!

Check the installation notes at the bottom of readme.... (Ubuntu section)

sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install neovim

@mirjr
Copy link
Author

mirjr commented Dec 8, 2023

@mirjr
In my case the issue was caused by installing not the most recent release of neovim!

Check the installation notes at the bottom of readme.... (Ubuntu section)

sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install neovim

Thanks

@ilan1009
Copy link

Same issue, @mirjr 's solution doesnt work for me.

@raulV92
Copy link

raulV92 commented May 10, 2024

same issue here, this doesnt seem to be related to LunarVim specifically, since the same error appears if trying to instal other nvim distros

@raulV92
Copy link

raulV92 commented May 11, 2024

which version did you use? I had 0.10.0 then I reinstalled and switched to 0.9.5 and the issue solved

@ilan1009
Copy link

ilan1009 commented May 11, 2024

which version did you use? I had 0.10.0 then I reinstalled and switched to 0.9.5 and the issue solved

Hey, what do you mean exactly? what version of what should I downgrade

EDIT: I solved it, DONT INSTALL NVIM FROM APT, install with these official instructions

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

4 participants