Files
ale/test/fixers/test_typstyle_fixer_callback.vader
Adrian Vollmer fe6a91fb92
Some checks are pending
CI / build_image (push) Waiting to run
CI / test_ale (--linters-only) (push) Blocked by required conditions
CI / test_ale (--neovim-07-only) (push) Blocked by required conditions
CI / test_ale (--neovim-08-only) (push) Blocked by required conditions
CI / test_ale (--vim-80-only) (push) Blocked by required conditions
CI / test_ale (--vim-90-only) (push) Blocked by required conditions
Add the typstyle formatter as a fixer for Typst (#4927)
Co-authored-by: Adrian Vollmer <computerfluesterer@protonmail.com>
2025-03-17 21:10:24 +09:00

22 lines
575 B
Plaintext

Before:
call ale#assert#SetUpFixerTest('typst', 'typstyle', 'typstyle')
After:
Restore
call ale#assert#TearDownFixerTest()
Execute(The typstyle callback should return the correct default command):
AssertEqual
\ {'command': ale#Escape('typstyle') . ' '},
\ ale#fixers#typstyle#Fix(bufnr(''))
Execute(The typstyle options should be considered):
call ale#test#SetFilename('../test-files/typstyle/testfile.typ')
let g:ale_typst_typstyle_options = '-c 100'
AssertFixer
\ { 'command': ale#Escape(g:ale_typst_typstyle_executable)
\ . ' -c 100',
\ }