glasgow

Crates.ioglasgow
lib.rsglasgow
version0.3.1
sourcesrc
created_at2024-07-18 18:49:55.487105
updated_at2024-08-24 13:57:02.779704
descriptionLanguage Server for WGSL (WebGPU Shading Language)
homepage
repositoryhttps://github.com/nolanderc/glasgow
max_upload_size
id1307878
size302,422
Christofer Nolander (nolanderc)

documentation

README

glasgow

A Language Server for WGSL (WebGPU Shading Language)

Features

  • 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

Planned

  • Support for non-standard #include/#import directives.

Usage

First install the language server using cargo:

cargo install glasgow

Then follow the editor-specific instructions below:

Visual Studio Code

Install the glasgow extension from the marketplace.

neovim

First, install nvim-lspconfig.

Then it is as simple as enabling the glasgow configuration:

local lspconfig = require 'lspconfig'
lspconfig.glasgow.setup {}
Commit count: 0

cargo fmt