From 5414e2f545adc9eb261034d5f2abefe4b681cc46 Mon Sep 17 00:00:00 2001 From: rawalplawit <39916917+rawalplawit@users.noreply.github.com> Date: Sat, 28 Aug 2021 20:01:04 +0545 Subject: feat(shopify): add shopify theme-check-language-server support (#1191) --- lua/lspconfig/theme_check.lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lua/lspconfig/theme_check.lua (limited to 'lua/lspconfig/theme_check.lua') diff --git a/lua/lspconfig/theme_check.lua b/lua/lspconfig/theme_check.lua new file mode 100644 index 00000000..1e8b24fe --- /dev/null +++ b/lua/lspconfig/theme_check.lua @@ -0,0 +1,33 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +local server_name = 'theme_check' +local bin_name = 'theme-check-language-server' + +configs[server_name] = { + default_config = { + cmd = { bin_name, '--stdio' }, + filetypes = { 'liquid' }, + root_dir = util.root_pattern '.theme-check.yml', + settings = {}, + }, + docs = { + description = [[ +https://github.com/Shopify/shopify-cli + +`theme-check-language-server` is bundled with `shopify-cli` or it can also be installed via + +https://github.com/Shopify/theme-check#installation + +**NOTE:** +If installed via Homebrew, `cmd` must be set to 'theme-check-liquid-server' + +```lua +require lspconfig.theme_check.setup { + cmd = { 'theme-check-liquid-server' } +} +``` + +]], + }, +} -- cgit v1.2.3-70-g09d2