Add naga linter for WGSL support (#4047)

* Add WGSL support using `naga` command

* Add documents for wgsl

* Add test for `naga` linter

* Separate naga handler callback to hanlder/naga.vim
This commit is contained in:
Linda_pp
2022-02-04 16:29:28 +09:00
committed by GitHub
parent d1e2aaf85d
commit 0d529d9b94
8 changed files with 98 additions and 0 deletions

View File

@@ -628,6 +628,8 @@ Notes:
* `prettier`
* `vls`
* `volar`
* WGSL
* `naga`
* XHTML
* `alex`
* `cspell`

17
doc/ale-wgsl.txt Normal file
View File

@@ -0,0 +1,17 @@
===============================================================================
ALE WGSL Integration *ale-wgsl-options*
===============================================================================
naga *ale-wgsl-naga*
g:ale_wgsl_naga_executable *g:ale_wgsl_naga_executable*
*b:ale_wgsl_naga_executable*
Type: |String|
Default: `'naga'`
The executable that will be run for the `naga` linter.
===============================================================================
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:

View File

@@ -3222,6 +3222,8 @@ documented in additional help files.
prettier..............................|ale-vue-prettier|
vls...................................|ale-vue-vls|
volar.................................|ale-vue-volar|
wgsl....................................|ale-wgsl-options|
naga..................................|ale-wgsl-naga|
xhtml...................................|ale-xhtml-options|
cspell................................|ale-xhtml-cspell|
write-good............................|ale-xhtml-write-good|