Add a function for fixing the alignment of Vim help tags

This commit is contained in:
w0rp committed 2017-07-03 16:51:34 +01:00
1 parent fd6f05c9ea
commit 160b9548ee
3 files changed
+48

No files matched your search

@@ -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*