-
Notifications
You must be signed in to change notification settings - Fork 30
Sublime
Gray Gilmore edited this page Dec 9, 2024
·
6 revisions
-
Install Package Control (should already be done)
-
Install
@shopify/cli
-
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_CLI
by your the output of the previous command.
{ "clients": { "liquid": { "command": [ "$PATH_TO_SHOPIFY_CLI", "theme", "language-server", ], "enabled": true, "selector": "text.plain", } } }
- Save the file.
-
-
Restart Sublime
-
...
-
Profit! 🔥