summaryrefslogtreecommitdiff
path: root/nvim/lsp/shopify_theme_ls.lua
diff options
context:
space:
mode:
authoranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
committeranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
commitb7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch)
tree366a68240fbc9da6b1d567bd6c46d1350ad814de /nvim/lsp/shopify_theme_ls.lua
Nixos
Diffstat (limited to 'nvim/lsp/shopify_theme_ls.lua')
-rwxr-xr-xnvim/lsp/shopify_theme_ls.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/nvim/lsp/shopify_theme_ls.lua b/nvim/lsp/shopify_theme_ls.lua
new file mode 100755
index 0000000..5415a30
--- /dev/null
+++ b/nvim/lsp/shopify_theme_ls.lua
@@ -0,0 +1,24 @@
+---@brief
+---
+--- https://shopify.dev/docs/api/shopify-cli
+---
+--- [Language Server](https://shopify.dev/docs/themes/tools/cli/language-server) and Theme Check (linter) for Shopify themes.
+---
+--- `shopify` can be installed via npm `npm install -g @shopify/cli`.
+---
+--- Note: This LSP already includes Theme Check so you don't need to use the `theme_check` server configuration as well.
+return {
+ cmd = {
+ 'shopify',
+ 'theme',
+ 'language-server',
+ },
+ filetypes = { 'liquid' },
+ root_markers = {
+ '.shopifyignore',
+ '.theme-check.yml',
+ '.theme-check.yaml',
+ 'shopify.theme.toml',
+ },
+ settings = {},
+}