aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lsp/glasgow.lua
blob: 5f003b5a9881556e462debf212e9a4292fe4cd35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---@brief
---
--- 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
--- ```

---@type vim.lsp.Config
return {
  cmd = { 'glasgow' },
  filetypes = { 'wgsl' },
  root_markers = { '.git' },
  settings = {},
}