# Editor Setup

Lune puts developer experience first, and as such provides type definitions and configurations for several tools out of the box.

These steps assume you have already installed Lune and that it is available to run in the current directory.

## Luau LSP

1. Run `lune --setup` to generate Luau type definitions for your installed version of Lune
2. Verify that type definition files have been generated
3. Modify your VSCode settings, either by using the settings menu or in `settings.json`:

   ```json
   "luau-lsp.require.mode": "relativeToFile", // Set the require mode to work with Lune
   "luau-lsp.require.fileAliases": { // Add type definitions for Lune builtins
   	"@lune/fs": ".../.lune/.typedefs/x.y.z/fs.luau",
   	"@lune/net": ".../.lune/.typedefs/x.y.z/net.luau",
   	"@lune/...": "..."
   }
   ```

   ***NOTE:** If you already had a `.vscode/settings.json` file in your current directory the type definition files may have been added automatically!*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lune.gitbook.io/lune/home/editor-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
