This is an addon for lua language server. It includes:
- Patcher plugin that adds support for the arrow function syntax
- Annotations for kOS structures, functions and bound variables
- Install the lua language server extension made by sumneko.
- Copy the
.luarc.jsonfile to the archive at*KSP_Folder*/Ships/Script/.luarc.json. - Open the folder with VSCode and you will be asked by the patcher plugin to patch lua language server.
- Read the message and press "Ok".
- Restart VSCode.
After setup you should have the syntax support and annotations available.