Editor Setup
Lune prioritizes developer experience, providing type definitions and documentation for many editors and tools without any additional downloads.
Quick Setup
Section titled “Quick Setup”Run this command to configure your project for editor support:
lune --initThis creates:
.luaurc- Luau LSP configuration with path aliaseslune.config.json- Lune project configurationlune_packages/- Directory for installed packages
Luau Language Server
Section titled “Luau Language Server”The Luau Language Server (luau-lsp) provides excellent editor support including:
- Autocomplete for all
@lune/*modules - Type checking with full type definitions
- Hover documentation for functions and types
- Go to definition support
VS Code
Section titled “VS Code”- Install the Luau LSP extension
- Run
lune --initin your project - Restart VS Code
Neovim
Section titled “Neovim”Add to your LSP config:
require('lspconfig').luau_lsp.setup({ -- Configuration here})Other Editors
Section titled “Other Editors”Any editor supporting the Language Server Protocol can use luau-lsp. Check your editor’s documentation for LSP setup.
Troubleshooting
Section titled “Troubleshooting”If autocomplete isn’t working:
- Make sure you ran
lune --init - Check that
.luaurcexists in your project root - Restart your editor/language server
← Command Line Usage | Next: Security →