- 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
-
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%YAML 1.2 | |
--- | |
# http://www.sublimetext.com/docs/syntax.html | |
name: Luau | |
file_extensions: | |
- luau | |
- lua | |
scope: source.luau | |
contexts: | |
main: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"new_file_syntax": "lua" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extensions": | |
[ | |
"luau" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bootstrapped": true, | |
"in_process_packages": [ | |
], | |
"installed_packages": [ | |
"AutoSetSyntax", | |
"LSP", | |
"Package Control", | |
], | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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(';')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[=[ | |
Copyright (c) 2022- https://github.com/hello-42 | |
MIT Licensing. All rights reserved. | |
]=] | |
-- Services | |
local HttpService = game:GetService("HttpService") | |
-- Internal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[=[ | |
Copyright (c) 2022- https://github.com/hello-42 | |
MIT Licensing. All rights reserved. | |
]=] | |
local Toggler = {} | |
-- Services | |
local RunService = game:GetService("RunService") |