dense-analysis / dense-analysis/ale

Add support for `g:ale_fix_on_save_only` and `g:ale_fix_<syntax>_on_save_only`

Open
#3,844 6 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Vim Script
Stars
14k
Forks
1.5k
Avg merge
17h 49m
Merged PRs (30d)
1

Description

Currently we can only ignore fixers on save with `g:ale_fix_on_save_ignore`. However to my knowledge there is no option to automatically run only certain fixers, like e.g. `'remove_trailing_lines', 'trim_whitespace'`.

It would be nice to have the following options:
1. `g:ale_fix_on_save_only`: list of fixers always running on save
2. `g:ale_fix__on_save_only`: list of fixers for a certain syntax always running on save.

This would give a very finegrained control of when to run what fixers automatically.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.