diff --git a/init.org b/init.org index 432f41a..971028f 100644 --- a/init.org +++ b/init.org @@ -1674,7 +1674,24 @@ LSP sets it's prefix key to =s-l= by default, which uses the Super key which I u #+end_src ** Graphics -glsl-mode: + +*** WGSL/WESL +#+begin_src emacs-lisp +(use-package wgsl-mode + :straight t + :ensure lsp-mode + :mode "\\.wesl\\'" + :hook (wgsl-mode . lsp-deferred) + :init + (add-to-list 'lsp-language-id-configuration '(wgsl-mode . "wgsl")) + (lsp-register-client (make-lsp-client + :new-connection (lsp-stdio-connection "wgsl-analyzer") + :activation-fn (lsp-activate-on "wgsl") + :server-id 'wgsl-analyzer)) + ) +#+end_src + +*** glsl-mode: #+begin_src emacs-lisp (use-package glsl-mode :straight t