Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Latest commit

 

History

History
40 lines (26 loc) · 1.48 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.48 KB

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.

Monaco Lua Example

An example setup using sumneko's Lua Language Server and JohnnyMorganz's StyLua together with Monaco Editor.

Features

  • ✨ Syntax Highlighting
  • 🚀 Autocompletion
  • 🌝 EmmyLua
  • ✔️ Linting
  • 🦀 Formatting (via wasm)
  • ⚡ Vite based client

Info

  • 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 in client/src/main.ts and server/src/main.ts
  • This is an npm workspaces setup, so you can run alle npm scripts inside the repository's root folder.

Get started

Clone this repository and run run npm install.

Development

Run npm run dev and visit localhost:3000.

Production

Run npm run build. To start the language server run npm run server-start.

Credits