mirror of
https://github.com/dense-analysis/ale.git
synced 2026-03-06 23:24:41 +08:00
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:
10
test/linter/test_naga.vader
Normal file
10
test/linter/test_naga.vader
Normal file
@@ -0,0 +1,10 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('wgsl', 'naga')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The naga command should be customizable):
|
||||
let g:ale_wgsl_naga_executable = '/path/to/naga'
|
||||
AssertLinter '/path/to/naga',
|
||||
\ ale#Escape('/path/to/naga') . ' --stdin-file-path %s'
|
||||
Reference in New Issue
Block a user