mirror of
https://github.com/dense-analysis/ale
synced 2024-12-24 15:13:02 +00:00
0d529d9b94
* Add WGSL support using `naga` command * Add documents for wgsl * Add test for `naga` linter * Separate naga handler callback to hanlder/naga.vim
13 lines
380 B
VimL
13 lines
380 B
VimL
" Author: rhysd <https://github.com/rhysd>
|
|
" Description: naga-cli linter for WGSL syntax.
|
|
|
|
call ale#Set('wgsl_naga_executable', 'naga')
|
|
|
|
call ale#linter#Define('wgsl', {
|
|
\ 'name': 'naga',
|
|
\ 'executable': {b -> ale#Var(b, 'wgsl_naga_executable')},
|
|
\ 'output_stream': 'stderr',
|
|
\ 'command': {b -> '%e --stdin-file-path %s'},
|
|
\ 'callback': 'ale#handlers#naga#Handle',
|
|
\})
|