Note A lot of dependencies have changed and I don't have the capcity to keep this repo up to date. Maybe it will still be useful as a starting point.
An example setup using sumneko's Lua Language Server and JohnnyMorganz's StyLua together with Monaco Editor.
- ✨ Syntax Highlighting
- 🚀 Autocompletion
- 🌝 EmmyLua
- ✔️ Linting
- 🦀 Formatting (via wasm)
- ⚡ Vite based client
- Right now I've tested the lua language server only on linux.
- The language server uses port
8080
, so make sure this port is free or change the port inclient/src/main.ts
andserver/src/main.ts
- This is an npm workspaces setup, so you can run alle npm scripts inside the repository's root folder.
Clone this repository and run run npm install
.
Run npm run dev
and visit localhost:3000
.
Run npm run build
. To start the language server run npm run server-start
.
- sumneko's Lua Language Server
- JohnnyMorganz's StyLua
- Typefox's monaco-languageclient and vscode-ws-jsonrpc
- CodinGame's monaco-jsonrpc