aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/theme_check.lua
diff options
context:
space:
mode:
authorrawalplawit <39916917+rawalplawit@users.noreply.github.com>2021-08-28 20:01:04 +0545
committerGitHub <noreply@github.com>2021-08-28 10:16:04 -0400
commit5414e2f545adc9eb261034d5f2abefe4b681cc46 (patch)
tree25ceb0949deba9af4e5c27ebb2a467fdb4deed9f /lua/lspconfig/theme_check.lua
parent[docgen] Update CONFIG.md (diff)
downloadnvim-lspconfig-5414e2f545adc9eb261034d5f2abefe4b681cc46.tar
nvim-lspconfig-5414e2f545adc9eb261034d5f2abefe4b681cc46.tar.gz
nvim-lspconfig-5414e2f545adc9eb261034d5f2abefe4b681cc46.tar.bz2
nvim-lspconfig-5414e2f545adc9eb261034d5f2abefe4b681cc46.tar.lz
nvim-lspconfig-5414e2f545adc9eb261034d5f2abefe4b681cc46.tar.xz
nvim-lspconfig-5414e2f545adc9eb261034d5f2abefe4b681cc46.tar.zst
nvim-lspconfig-5414e2f545adc9eb261034d5f2abefe4b681cc46.zip
feat(shopify): add shopify theme-check-language-server support (#1191)
Diffstat (limited to 'lua/lspconfig/theme_check.lua')
-rw-r--r--lua/lspconfig/theme_check.lua33
1 files changed, 33 insertions, 0 deletions
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' }
+}
+```
+
+]],
+ },
+}