Skip to content

Navigation Menu

Sign up

Sublime

CP Clermont edited this page May 7, 2024 · 6 revisions

Installation

  1. Install Package Control (should already be done)

  2. Install @shopify/theme

  3. Install the LSP package

    1. Open the Command Palette (CMD+Shift+P)

    2. Type Install, select "Package Control: Install Package"

    3. Type LSP, select "LSP"

  4. Configure the LSP plugin

    1. Open the Command Palette (CMD+Shift+P)

    2. Type LSP Settings, select "Preferences: LSP Settings"

    3. In a terminal, figure out where the shopify CLI is located.

    $ which shopify
    1. 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": {
     "theme-check": {
     "command": [
     "$PATH_TO_SHOPIFY_CLI",
     "theme",
     "language-server",
     ],
     "enabled": true,
     "languageId": "html",
     "scopes": [
     "text.html.basic"
     ],
     "syntaxes": [
     "Packages/HTML/HTML.sublime-syntax"
     ]
     }
     }
    }
    1. Save the file.
  5. Restart Sublime

  6. ...

  7. Profit! 🔥

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /