Repository navigation
Emacs
CP Clermont edited this page Oct 12, 2023
·
3 revisions
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 "shopify theme 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.