From 1ea7c6126a1aa0121098e4f16c04d5dde1a4ba22 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 21 Jul 2024 02:06:54 +0000 Subject: docs: update server_configurations.md skip-checks: true --- doc/server_configurations.md | 55 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'doc/server_configurations.md') 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 -- cgit v1.2.3-70-g09d2