Change the flags file so it uses the get function.
This commit is contained in:
parent
6754b9f1f8
commit
aebf8e0196
@ -9,45 +9,30 @@ endif
|
|||||||
let g:loaded_ale_flags = 1
|
let g:loaded_ale_flags = 1
|
||||||
|
|
||||||
" This flag can be set to 0 to disable linting when text is changed.
|
" This flag can be set to 0 to disable linting when text is changed.
|
||||||
if !exists('g:ale_lint_on_text_changed')
|
let g:ale_lint_on_text_changed = get(g:, 'ale_lint_on_text_changed', 1)
|
||||||
let g:ale_lint_on_text_changed = 1
|
|
||||||
endif
|
|
||||||
|
|
||||||
" This flag can be set with a number of milliseconds for delaying the
|
" This flag can be set with a number of milliseconds for delaying the
|
||||||
" execution of a linter when text is changed. The timeout will be set and
|
" execution of a linter when text is changed. The timeout will be set and
|
||||||
" cleared each time text is changed, so repeated edits won't trigger the
|
" cleared each time text is changed, so repeated edits won't trigger the
|
||||||
" jobs for linting until enough time has passed after editing is done.
|
" jobs for linting until enough time has passed after editing is done.
|
||||||
if !exists('g:ale_lint_delay')
|
let g:ale_lint_delay = get(g:, 'ale_lint_delay', 100)
|
||||||
let g:ale_lint_delay = 100
|
|
||||||
endif
|
|
||||||
|
|
||||||
" This flag can be set to 0 to disable linting when the buffer is entered.
|
" This flag can be set to 0 to disable linting when the buffer is entered.
|
||||||
if !exists('g:ale_lint_on_enter')
|
let g:ale_lint_on_enter = get(g:, 'ale_lint_on_enter', 1)
|
||||||
let g:ale_lint_on_enter = 1
|
|
||||||
endif
|
|
||||||
|
|
||||||
" This flag can be set to 0 to disable setting the loclist.
|
" This flag can be set to 0 to disable setting the loclist.
|
||||||
if !exists('g:ale_set_loclist')
|
let g:ale_set_loclist = get(g:, 'ale_set_loclist', 1)
|
||||||
let g:ale_set_loclist = 1
|
|
||||||
endif
|
|
||||||
|
|
||||||
" This flag can be set to 0 to disable setting signs.
|
" This flag can be set to 0 to disable setting signs.
|
||||||
if !exists('g:ale_set_signs')
|
" This is enabled by default only if the 'signs' feature exists.
|
||||||
" Enable the flag by default if the 'signs' feature exists.
|
let g:ale_set_signs = get(g:, 'ale_set_signs', has('signs'))
|
||||||
let g:ale_set_signs = has('signs')
|
|
||||||
endif
|
|
||||||
|
|
||||||
" This flag can be set to 0 to disable echoing when the cursor moves.
|
" This flag can be set to 0 to disable echoing when the cursor moves.
|
||||||
if !exists('g:ale_echo_cursor')
|
let g:ale_echo_cursor = get(g:, 'ale_echo_cursor', 1)
|
||||||
let g:ale_echo_cursor = 1
|
|
||||||
endif
|
|
||||||
|
|
||||||
" This flag can be set to 0 to disable warnings for trailing whitespace
|
" This flag can be set to 0 to disable warnings for trailing whitespace
|
||||||
if !exists('g:ale_warn_about_trailing_whitespace')
|
let g:ale_warn_about_trailing_whitespace =
|
||||||
let g:ale_warn_about_trailing_whitespace = 1
|
\ get(g:, 'ale_warn_about_trailing_whitespace', 1)
|
||||||
endif
|
|
||||||
|
|
||||||
" This flag can be set to 1 to keep sign gutter always open
|
" This flag can be set to 1 to keep sign gutter always open
|
||||||
if !exists('g:ale_sign_column_always')
|
let g:ale_sign_column_always = get(g:, 'ale_sign_column_always', 0)
|
||||||
let g:ale_sign_column_always = 0
|
|
||||||
endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user