mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-03 10:03:47 +08:00
Add a function for fixing the alignment of Vim help tags
This commit is contained in:
19
test/fixers/test_vim_help_tags_alignment_fixer.vader
Normal file
19
test/fixers/test_vim_help_tags_alignment_fixer.vader
Normal file
@@ -0,0 +1,19 @@
|
||||
Before:
|
||||
Save g:ale_fixers
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
Given help(A vim help file with badly aligned tags):
|
||||
foo *foo*
|
||||
bar *bar*
|
||||
baz *bar*
|
||||
|
||||
Execute(Tags should be aligned at the right margin):
|
||||
let g:ale_fixers = {'help': ['align_help_tags']}
|
||||
ALEFix
|
||||
|
||||
Expect help(Tags should be aligned):
|
||||
foo *foo*
|
||||
bar *bar*
|
||||
baz *bar*
|
||||
Reference in New Issue
Block a user