I think if you open a Lua file VS Code will prompt you to install a variety of Lua support extensions, after which basic linting, go to and code completion should just work.
You'll still have to follow some of the steps in
https://github.com/koreader/koreader...-and-derivates though (provided you want to compile and not just edit)