This repository has been archived by the owner on Jul 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
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.
-
Install Package Control (should already be done)
-
Install
theme-check
(follow instuctions on the README) -
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
theme-check-language-server
is located.
$ which theme-check-language-server
- 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" ] } } }
- Save the file.
-
-
Restart Sublime
-
...
-
Profit! 🔥