mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 13:02:28 +08:00
Add zig fmt support (#4198)
* Add zig fmt support * Review changes * Fix linter errors
This commit is contained in:
20
test/fixers/test_zigfmt_fixer_callback.vader
Normal file
20
test/fixers/test_zigfmt_fixer_callback.vader
Normal file
@@ -0,0 +1,20 @@
|
||||
Before:
|
||||
call ale#assert#SetUpFixerTest('zig', 'zigfmt')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownFixerTest()
|
||||
|
||||
Execute(The zig callback should return the correct default values):
|
||||
AssertFixer {
|
||||
\ 'command': ale#Escape('zig') . ' fmt %t',
|
||||
\ 'read_temporary_file': 1,
|
||||
\}
|
||||
|
||||
Execute(The zig callback should allow custom zig executables):
|
||||
let g:ale_zig_zigfmt_executable = 'foo/bar'
|
||||
|
||||
AssertFixer {
|
||||
\ 'command': ale#Escape('foo/bar') . ' fmt %t',
|
||||
\ 'read_temporary_file': 1,
|
||||
\}
|
||||
|
||||
Reference in New Issue
Block a user