-
Install Package Control
- You may need to run "Package Control: Update/Overwrite All Packages" in order to satisfy dependencies that may be missing but are required for both the Package Control and LSP packages
-
Install the "LSP" package
-
Download luau-lsp.exe from the luau-lsp repository's releases
-
Place the luau-lsp.exe binary into a directory of your choosing (mine is
C:\Users\me\.bin) -
For the sake of clarity, we're going to call this directory's nickname {dirName} and everywhere {dirName} shows up in our settings, you should replace it with the name you gave your directory. This behavior also applies to some files we'll be downloading in steps further on down.
-
Add that directory to your environment path variables so that Sublime Text can call out to and use luau-lsp.exe when it runs
-
-
Download Roblox's documentation and global types that we need to provide to luau-lsp.exe
-
Place both of these files in the same directory you put luau-lsp.exe under
-
When replacing these files' nicknames with the name you gave them, include the file's extension
-
https://raw.githubusercontent.com/MaximumADHD/Roblox-Client-Tracker/roblox/api-docs/en-us.json
-
We'll nickname the api-docs file {api-docs}
-
https://raw.githubusercontent.com/JohnnyMorganz/luau-lsp/main/scripts/globalTypes.d.luau
-
We'll nickname the global types file {global-types}
-
-
Edit the LSP package's package settings
- Preferences -> Package Settings -> LSP -> Settings
- Edit LSP.sublime-settings to include support for luau-lsp manually like so:
-
Add syntax support for Luau to Sublime Text
- Preferences -> Browse Packages
- Navigate to the "User" directory and create a new directory called "Luau"
- Download and place the file below into the Luau directory:
- https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/refs/heads/main/Luau.tmLanguage
-
Associate
.luaufiles with the Luau syntax- Create or open any
.luaufile - View -> Syntax -> Open all with current extension as... -> Luau
- Create or open any
-
Done