Issues with sumneko_lua

Hi all, I’m having troubles with lua lsp recently… It seems that the lsp completely forgot about builtins, such as ipairs, tonumber, even table module and treats them as undefined globals.

I have sumneko configured as per lspconfig documentation to work with nvim runtime as a workspace library and this issue only happens for configuration files; everything works fine if I create a lua file anywhere outside nvim rtp.

I haven’t modified my config in months and everything used to work fine, what could have changed?

sumneko_lua version is 3.5.6 (macports)

thx :slight_smile: