Parser to generate Eluna LSP definitions for LuaLS.
LuaLS-Eluna-Parser is a tool designed to generate Language Server Protocol (LSP) definitions for the Lua Language Server (LuaLS) from the Eluna API documentation. This enhances the development experience by providing intelligent suggestions and autocompletion for methods and properties of Eluna objects.
- Download Eluna API Documentation: Obtain a copy of the Eluna API documentation files.
- Run the Parser: Execute the parser on the documentation HTML files. An example of this process can be seen in the PowerShell or Bash script included in this repository.
- Completion: Once the parser runs successfully, the generated definitions will be ready to use.
OR
Download the latest generated definitions from the build workflow action, alternatively from this link (provided by nightly).
- Install LuaLS: Follow the LuaLS installation instructions.
- Configure Your Workspace: Point your workspace/LSP configuration to the location of the generated definitions.
- Install Python 3, Pip, and dependencies:
- Generate LSP definitions:
- Windows:
- Edit lines 2, 3, and 6 in
runParser.ps1
. - Run the script.
- Edit lines 2, 3, and 6 in
- Linux:
- Edit lines 4, 5, and 8 in
runParser.sh
. - Run the script.
- Edit lines 4, 5, and 8 in
- Windows:
- Configure your workspace/LSP to point to the location of your generated definitions.