aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/glasgow.lua
blob: 4ed5acc482c692d8f43ce2acb7545280617d61a3 (plain) (blame)
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
---@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
-- ```
return {
  cmd = { 'glasgow' },
  filetypes = { 'wgsl' },
  root_markers = { '.git' },
  settings = {},
}