Repository navigation
Sublime
CP Clermont edited this page May 7, 2024
·
6 revisions
-
Install Package Control (should already be done)
-
Install
@shopify/theme -
Install the LSP package
-
Open the Command Palette (
CMD+Shift+P) -
Type
Install, select "Package Control: Install Package" -
Type
LSP, select "LSP"
-
-
Configure the LSP plugin
-
Open the Command Palette (
CMD+Shift+P) -
Type
LSP Settings, select "Preferences: LSP Settings" -
In a terminal, figure out where the shopify CLI is located.
$ which shopify
- Paste the following LSP client config into your LSP settings and replace
$PATH_TO_SHOPIFY_CLIby your the output of the previous command.
{ "clients": { "theme-check": { "command": [ "$PATH_TO_SHOPIFY_CLI", "theme", "language-server", ], "enabled": true, "languageId": "html", "scopes": [ "text.html.basic" ], "syntaxes": [ "Packages/HTML/HTML.sublime-syntax" ] } } }- Save the file.
-
-
Restart Sublime
-
...
-
Profit! 🔥