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.17k forks source link

lsp giving an error when opening neovim #199

Closed OddBread closed 1 year ago

OddBread commented 1 year ago
Error detected while processing /home/oddbread/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/oddbread/.config/nvim/lua/user/lsp/configs.lua:16: attempt to index a 
stack traceback:
        /home/oddbread/.config/nvim/lua/user/lsp/configs.lua:16: in main chunk
        [C]: in function 'require'
        /home/oddbread/.config/nvim/lua/user/lsp/init.lua:6: in main chunk
        [C]: in function 'require'
        /home/oddbread/.config/nvim/init.lua:10: in main chunk

Anyone know what might be causing this? Am i missing a plugin or something? I'm following along with the series and didn't install the whole config at once since i want to configure what features i find useful, is that where the problem is coming from?

The error shows up after requiring "user.lsp.init" or "user.lsp" in my vim init

(please help, im actually losing my damn mind over this)

OddBread commented 1 year ago

solved it, forgot to install the hrsh7th/cmp-nvim-lsp plugin. Can't believe i missed that somehow