acowley / wgsl-ts-mode

WGSL tree-sitter support for emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Emacs tree-sitter support for the WebGPU Shading Language (WGSL) providing syntax highlighting and navigation.

Installation

In order to use this mode, you must arrange that the tree-sitter-wgsl grammar is available.

General

Tree-sitter grammars are unfortunately a separate concern from the emacs support. There is a section on installing grammars as part of a helpful article on getting started with tree-sitter in emacs that will likely be of use.

Nix

If you use the nix package manager, it is available as part of the treesit-grammars package that you can include among your other emacs packages with,

treesit-grammars.with-all-grammars

or you can specify which grammars to include,

(treesit-grammars.with-grammars (p: [ p.tree-sitter-wgsl ]))

About

WGSL tree-sitter support for emacs

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 100.0%