diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-05-12 05:50:27 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-05-12 05:50:27 +0000 |
| commit | 94513a5b246cf32a8f87ca714af50911df63351c (patch) | |
| tree | c9d167f292aa649d7860360ee0d6ddc4db18cacd /doc/server_configurations.md | |
| parent | feat: add shopify theme language-server (#3147) (diff) | |
| download | nvim-lspconfig-94513a5b246cf32a8f87ca714af50911df63351c.tar nvim-lspconfig-94513a5b246cf32a8f87ca714af50911df63351c.tar.gz nvim-lspconfig-94513a5b246cf32a8f87ca714af50911df63351c.tar.bz2 nvim-lspconfig-94513a5b246cf32a8f87ca714af50911df63351c.tar.lz nvim-lspconfig-94513a5b246cf32a8f87ca714af50911df63351c.tar.xz nvim-lspconfig-94513a5b246cf32a8f87ca714af50911df63351c.tar.zst nvim-lspconfig-94513a5b246cf32a8f87ca714af50911df63351c.zip | |
docs: update server_configurations.md
skip-checks: true
Diffstat (limited to 'doc/server_configurations.md')
| -rw-r--r-- | doc/server_configurations.md | 48 |
1 files changed, 45 insertions, 3 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 14f0d2d5..0a35d050 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -233,6 +233,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [scheme_langserver](#scheme_langserver) - [scry](#scry) - [serve_d](#serve_d) +- [shopify_theme_ls](#shopify_theme_ls) - [sixtyfps](#sixtyfps) - [slangd](#slangd) - [slint_lsp](#slint_lsp) @@ -855,7 +856,7 @@ require'lspconfig'.arduino_language_server.setup{} dynamicRegistration = false }, didChangeWatchedFiles = { - dynamicRegistration = true, + dynamicRegistration = false, relativePatternSupport = true }, inlayHint = { @@ -4099,7 +4100,7 @@ require'lspconfig'.fennel_ls.setup{} dynamicRegistration = false }, didChangeWatchedFiles = { - dynamicRegistration = true, + dynamicRegistration = false, relativePatternSupport = true }, inlayHint = { @@ -10087,7 +10088,7 @@ require'lspconfig'.rust_analyzer.setup{} dynamicRegistration = false }, didChangeWatchedFiles = { - dynamicRegistration = true, + dynamicRegistration = false, relativePatternSupport = true }, inlayHint = { @@ -10260,6 +10261,47 @@ require'lspconfig'.serve_d.setup{} ``` +## shopify_theme_ls + +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`. + +```lua +require lspconfig.shopify_theme_ls.setup {} +``` + +Note: This LSP already includes Theme Check so you don't need to use the `theme_check` server configuration as well. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.shopify_theme_ls.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "shopify", "theme", "language-server" } + ``` + - `filetypes` : + ```lua + { "liquid" } + ``` + - `root_dir` : + ```lua + see source file + ``` + - `settings` : + ```lua + {} + ``` + + ## sixtyfps https://github.com/sixtyfpsui/sixtyfps |
