LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable
https://www.chrisatmachine.com/
GNU General Public License v3.0
5.31k stars 1.18k forks source link

Error while calling lua chunk #329

Open mirjr opened 7 months ago

mirjr commented 7 months ago

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

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

eMKa94 commented 6 months ago

@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 commented 6 months ago

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

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

raulV92 commented 1 month ago

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 commented 1 month ago

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

ilan1009 commented 1 month ago

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

Hole-code commented 3 weeks ago

That's dumb. not installing from apt. how do i then update it?