dense-analysis / ale

Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
BSD 2-Clause "Simplified" License
13.49k stars 1.43k forks source link

Support enabling linting on save for specific buffers #1813

Open mellery451 opened 6 years ago

mellery451 commented 6 years ago

Here's my use case:

for most filetypes, I want my configured global behavior of lint-on-save (only) to apply. For specific file types (c++, mostly), I want all automatic linting disabled, but I do want to be able to manually run linting as needed. I've tried setting ale_lint_on_save to 0 in ale_pattern_options, but it did nothing. Is there a way to accomplish this currently, or just a missing feature? Great plugin - Thanks.

w0rp commented 6 years ago

ALE doesn't support configuring that setting differently for different buffers at the moment.