mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Update Ale.
This commit is contained in:
12
sources_non_forked/ale/ale_linters/wgsl/naga.vim
Normal file
12
sources_non_forked/ale/ale_linters/wgsl/naga.vim
Normal file
@ -0,0 +1,12 @@
|
||||
" 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',
|
||||
\})
|
Reference in New Issue
Block a user