Skip to content

Sublime

Charles-Philippe Clermont edited this page Jan 20, 2021 · 6 revisions

Theme-Check is implemented as an LSP server. This means that it integrates pretty well with any editor that has an LSP Client.

For sublime, you can do this by integrating with the LSP plugin.

Installation

  1. Install Package Control (should already be done)

  2. Install theme-check (follow instuctions on the README)

  3. Install the LSP package

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

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

      install

    3. Type LSP, select "LSP"

      lsp

  4. Configure the LSP plugin

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

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

      settings

    3. In a terminal, figure out where theme-check-language-server is located.

    $ which theme-check-language-server
    1. Paste the following LSP client config into your LSP settings and replace $PATH_TO_THEME_CHECK_LIQUID_SERVER by your the output of the previous command.
    {
      "clients": {
        "theme-check": {
          "command": [
            "$PATH_TO_THEME_CHECK_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