Skip to content

Instantly share code, notes, and snippets.

View hello-42's full-sized avatar

David (hello42) hello-42

View GitHub Profile
%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")