mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-10 05:22:31 +08:00
#427 Allow linters and aliases to be configured in buffer local variables
This commit is contained in:
13
doc/ale.txt
13
doc/ale.txt
@@ -364,7 +364,7 @@ g:ale_lint_on_insert_leave *g:ale_lint_on_insert_leave*
|
||||
|
||||
|
||||
g:ale_linter_aliases *g:ale_linter_aliases*
|
||||
|
||||
*b:ale_linter_aliases*
|
||||
Type: |Dictionary|
|
||||
Default: `{}`
|
||||
|
||||
@@ -399,8 +399,13 @@ g:ale_linter_aliases *g:ale_linter_aliases*
|
||||
Note that `html` itself was included as an alias. That is because aliases
|
||||
will override the original linters for the aliased filetepe.
|
||||
|
||||
g:ale_linters *g:ale_linters*
|
||||
Linter aliases can be configured in each buffer with buffer-local variables.
|
||||
ALE will first look for aliases for filetypes in the `b:ale_linter_aliases`
|
||||
variable, then `g:ale_linter_aliases`, and then a default Dictionary.
|
||||
|
||||
|
||||
g:ale_linters *g:ale_linters*
|
||||
*b:ale_linters*
|
||||
Type: |Dictionary|
|
||||
Default: `{}`
|
||||
|
||||
@@ -434,6 +439,10 @@ g:ale_linters *g:ale_linters*
|
||||
|
||||
let g:ale_linters = {'c': 'all'}
|
||||
<
|
||||
Linters can be configured in each buffer with buffer-local variables. ALE
|
||||
will first look for linters for filetypes in the `b:ale_linters` variable,
|
||||
then `g:ale_linters`, and then a default Dictionary.
|
||||
|
||||
|
||||
g:ale_max_buffer_history_size *g:ale_max_buffer_history_size*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user