Skip to content

Instantly share code, notes, and snippets.

View hello-42's full-sized avatar

David (hello42) hello-42

View GitHub Profile
@hello-42
hello-42 / installing-luau-and-luau-lsp-with-sublime-text-steps.md
Created August 9, 2025 18:42
Steps for supporting Luau and Luau LSP for roblox-based development in Sublime Text and with Sublime Text's LSP package
  1. 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
  2. Install the "LSP" package
  3. 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

%YAML 1.2
---
# http://www.sublimetext.com/docs/syntax.html
name: Luau
file_extensions:
- luau
- lua
scope: source.luau
contexts:
main:
{
"new_file_syntax": "lua"
}
{
"extensions":
[
"luau"
]
}
{
"bootstrapped": true,
"in_process_packages": [
],
"installed_packages": [
"AutoSetSyntax",
"LSP",
"Package Control",
],
}
@hello-42
hello-42 / setup-sublime.ps1
Created July 5, 2023 19:21
A Windows installer for Sublime Text, Luau LSP, and Roblox definitions and documentation files
$sublHasPath = $FALSE
$luauLSPHasPath = $FALSE
$luauLspFolder = $NULL
try {
# Install Sublime
winget.exe install -e --id SublimeHQ.SublimeText.4 --force
# Check if Sublime is under our PATH environment
ForEach ($PATH in $env:PATH.Split(';')) {
@hello-42
hello-42 / LSP.sublime-settings
Last active February 23, 2024 23:35
Meant to be installed via setup-sublime.ps1
// Settings in here override those in "LSP/LSP.sublime-settings"
{
"clients": {
"luau-lsp": {
"command":
[
"luau-lsp",
"lsp",
"--definitions=$home\\.luau-lsp\\globalTypes.d.lua",
"--docs=$home\\.luau-lsp\\api-docs.json",
--[=[
Copyright (c) 2022- https://github.com/hello-42
MIT Licensing. All rights reserved.
]=]
-- Services
local HttpService = game:GetService("HttpService")
-- Internal
--[=[
Copyright (c) 2022- https://github.com/hello-42
MIT Licensing. All rights reserved.
]=]
local Toggler = {}
-- Services
local RunService = game:GetService("RunService")