wgsl/wesl mode with wgsl-analyzer
This commit is contained in:
parent
215f932359
commit
1bdb5ed156
19
init.org
19
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
|
||||
|
|
Loading…
Reference in a new issue