This repository was archived by the owner on Jul 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Emacs
CP Clermont edited this page Sep 18, 2023
·
3 revisions
Theme-Check is implemented as an LSP server. This means that it integrates pretty well with any editor that has an LSP Client.
If installed directly (via Homebrew or Ruby Gems), the language server should be on your $PATH as theme-check-language-server.
lsp-mode Configuration
Below is an example configuration to be used with web-mode. The use of web-mode is not required, html-mode or any other major syntax mode a user finds appropriate for liquid would do.
;; Shopify template lsp with theme-check
(with-eval-after-load 'lsp-mode
(add-to-list 'lsp-language-id-configuration
'(web-mode . "\\.liquid\\'"))
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection "theme-check-language-server")
:activation-fn (lsp-activate-on "\\.liquid\\'")
:server-id 'theme-check)))See https://emacs-lsp.github.io/lsp-mode/page/adding-new-language/ for more information.