aboutsummaryrefslogtreecommitdiffstats
path: root/doc/server_configurations.md
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-07-21 02:06:54 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-07-21 02:06:54 +0000
commit1ea7c6126a1aa0121098e4f16c04d5dde1a4ba22 (patch)
treebefb426eebf68b498acf20bb00f210c57cdc27b8 /doc/server_configurations.md
parentfeat: add server configuration for `glasgow` (#3242) (diff)
downloadnvim-lspconfig-1ea7c6126a1aa0121098e4f16c04d5dde1a4ba22.tar
nvim-lspconfig-1ea7c6126a1aa0121098e4f16c04d5dde1a4ba22.tar.gz
nvim-lspconfig-1ea7c6126a1aa0121098e4f16c04d5dde1a4ba22.tar.bz2
nvim-lspconfig-1ea7c6126a1aa0121098e4f16c04d5dde1a4ba22.tar.lz
nvim-lspconfig-1ea7c6126a1aa0121098e4f16c04d5dde1a4ba22.tar.xz
nvim-lspconfig-1ea7c6126a1aa0121098e4f16c04d5dde1a4ba22.tar.zst
nvim-lspconfig-1ea7c6126a1aa0121098e4f16c04d5dde1a4ba22.zip
docs: update server_configurations.md
skip-checks: true
Diffstat (limited to 'doc/server_configurations.md')
-rw-r--r--doc/server_configurations.md55
1 files changed, 55 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md
index 74df549a..81c7092b 100644
--- a/doc/server_configurations.md
+++ b/doc/server_configurations.md
@@ -108,6 +108,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [ghdl_ls](#ghdl_ls)
- [ginko_ls](#ginko_ls)
- [gitlab_ci_ls](#gitlab_ci_ls)
+- [glasgow](#glasgow)
- [gleam](#gleam)
- [glint](#glint)
- [glsl_analyzer](#glsl_analyzer)
@@ -4629,6 +4630,60 @@ require'lspconfig'.gitlab_ci_ls.setup{}
```
+## glasgow
+
+https://github.com/nolanderc/glasgow
+
+Provides language features for WGSL (WebGPU Shading Language):
+- Completions:
+ - Local functions/variables/types.
+ - Fields and swizzles.
+ - Builtin types and functions (`dot`, `reflect`, `textureSample`, `vec3`, `mat4x2`, etc.)
+- Hover Documentation:
+ - Function signatures.
+ - Variable types.
+ - Includes builtin types and functions. Text is taken from the WGSL specification.
+- Goto Definition
+- Find all References
+- Rename
+- Formatter
+
+`glasgow` can be installed via `cargo`:
+```sh
+cargo install glasgow
+```
+
+
+
+**Snippet to enable the language server:**
+```lua
+require'lspconfig'.glasgow.setup{}
+```
+
+
+**Default values:**
+ - `cmd` :
+ ```lua
+ { "glasgow" }
+ ```
+ - `filetypes` :
+ ```lua
+ { "wgsl" }
+ ```
+ - `root_dir` :
+ ```lua
+ root_pattern(".git")
+ ```
+ - `settings` :
+ ```lua
+ {}
+ ```
+ - `single_file_support` :
+ ```lua
+ true
+ ```
+
+
## gleam
https://github.com/gleam-lang/gleam