#1524 Replace ale#Set with let in the main file
This commit is contained in:
parent
18509195f5
commit
cae194d1bd
@ -63,9 +63,9 @@ let g:ale_filetype_blacklist = [
|
|||||||
\]
|
\]
|
||||||
|
|
||||||
" This Dictionary configures which linters are enabled for which languages.
|
" This Dictionary configures which linters are enabled for which languages.
|
||||||
call ale#Set('linters', {})
|
let g:ale_linters = get(g:, 'ale_linters', {})
|
||||||
" This option can be changed to only enable explicitly selected linters.
|
" This option can be changed to only enable explicitly selected linters.
|
||||||
call ale#Set('linters_explicit', 0)
|
let g:ale_linters_explicit = get(g:, 'ale_linters_explicit', 0)
|
||||||
|
|
||||||
" This Dictionary configures which functions will be used for fixing problems.
|
" This Dictionary configures which functions will be used for fixing problems.
|
||||||
let g:ale_fixers = get(g:, 'ale_fixers', {})
|
let g:ale_fixers = get(g:, 'ale_fixers', {})
|
||||||
@ -96,7 +96,7 @@ let g:ale_lint_on_save = get(g:, 'ale_lint_on_save', 1)
|
|||||||
" This flag can be set to 1 to enable linting when the filetype is changed.
|
" This flag can be set to 1 to enable linting when the filetype is changed.
|
||||||
let g:ale_lint_on_filetype_changed = get(g:, 'ale_lint_on_filetype_changed', 1)
|
let g:ale_lint_on_filetype_changed = get(g:, 'ale_lint_on_filetype_changed', 1)
|
||||||
|
|
||||||
call ale#Set('fix_on_save', 0)
|
let g:ale_fix_on_save = get(g:, 'ale_fix_on_save', 0)
|
||||||
|
|
||||||
" This flag may be set to 0 to disable ale. After ale is loaded, :ALEToggle
|
" This flag may be set to 0 to disable ale. After ale is loaded, :ALEToggle
|
||||||
" should be used instead.
|
" should be used instead.
|
||||||
@ -117,7 +117,7 @@ let g:ale_keep_list_window_open = get(g:, 'ale_keep_list_window_open', 0)
|
|||||||
let g:ale_list_vertical = get(g:, 'ale_list_vertical', 0)
|
let g:ale_list_vertical = get(g:, 'ale_list_vertical', 0)
|
||||||
|
|
||||||
" The window size to set for the quickfix and loclist windows
|
" The window size to set for the quickfix and loclist windows
|
||||||
call ale#Set('list_window_size', 10)
|
let g:ale_list_window_size = get(g:, 'ale_list_window_size', 10)
|
||||||
|
|
||||||
" This flag can be set to 0 to disable setting signs.
|
" This flag can be set to 0 to disable setting signs.
|
||||||
" This is enabled by default only if the 'signs' feature exists.
|
" This is enabled by default only if the 'signs' feature exists.
|
||||||
@ -128,17 +128,17 @@ let g:ale_max_signs = get(g:, 'ale_max_signs', -1)
|
|||||||
|
|
||||||
" This flag can be set to 1 to enable changing the sign column colors when
|
" This flag can be set to 1 to enable changing the sign column colors when
|
||||||
" there are errors.
|
" there are errors.
|
||||||
call ale#Set('change_sign_column_color', 0)
|
let g:ale_change_sign_column_color = get(g:, 'ale_change_sign_column_color', 0)
|
||||||
|
|
||||||
" This flag can be set to 0 to disable setting error highlights.
|
" This flag can be set to 0 to disable setting error highlights.
|
||||||
let g:ale_set_highlights = get(g:, 'ale_set_highlights', has('syntax'))
|
let g:ale_set_highlights = get(g:, 'ale_set_highlights', has('syntax'))
|
||||||
|
|
||||||
" These variables dictate what sign is used to indicate errors and warnings.
|
" These variables dictate what sign is used to indicate errors and warnings.
|
||||||
call ale#Set('sign_error', '>>')
|
let g:ale_sign_error = get(g:, 'ale_sign_error', '>>')
|
||||||
call ale#Set('sign_style_error', g:ale_sign_error)
|
let g:ale_sign_style_error = get(g:, 'ale_sign_style_error', g:ale_sign_error)
|
||||||
call ale#Set('sign_warning', '--')
|
let g:ale_sign_warning = get(g:, 'ale_sign_warning', '--')
|
||||||
call ale#Set('sign_style_warning', g:ale_sign_warning)
|
let g:ale_sign_style_warning = get(g:, 'ale_sign_style_warning', g:ale_sign_warning)
|
||||||
call ale#Set('sign_info', g:ale_sign_warning)
|
let g:ale_sign_info = get(g:, 'ale_sign_info', g:ale_sign_warning)
|
||||||
|
|
||||||
" This variable sets an offset which can be set for sign IDs.
|
" This variable sets an offset which can be set for sign IDs.
|
||||||
" This ID can be changed depending on what IDs are set for other plugins.
|
" This ID can be changed depending on what IDs are set for other plugins.
|
||||||
@ -149,9 +149,9 @@ let g:ale_sign_offset = get(g:, 'ale_sign_offset', 1000000)
|
|||||||
let g:ale_sign_column_always = get(g:, 'ale_sign_column_always', 0)
|
let g:ale_sign_column_always = get(g:, 'ale_sign_column_always', 0)
|
||||||
|
|
||||||
" A string format for the echoed message
|
" A string format for the echoed message
|
||||||
call ale#Set('echo_msg_format', '%code: %%s')
|
let g:ale_echo_msg_format = get(g:, 'ale_echo_msg_format', '%code: %%s')
|
||||||
" The same for the loclist.
|
" The same for the loclist.
|
||||||
call ale#Set('loclist_msg_format', g:ale_echo_msg_format)
|
let g:ale_loclist_msg_format = get(g:, 'ale_loclist_msg_format', g:ale_echo_msg_format)
|
||||||
|
|
||||||
" Strings used for severity in the echoed message
|
" Strings used for severity in the echoed message
|
||||||
let g:ale_echo_msg_error_str = get(g:, 'ale_echo_msg_error_str', 'Error')
|
let g:ale_echo_msg_error_str = get(g:, 'ale_echo_msg_error_str', 'Error')
|
||||||
@ -164,7 +164,7 @@ let g:ale_echo_cursor = get(g:, 'ale_echo_cursor', 1)
|
|||||||
let g:ale_echo_delay = get(g:, 'ale_echo_delay', 10)
|
let g:ale_echo_delay = get(g:, 'ale_echo_delay', 10)
|
||||||
|
|
||||||
" This flag can be set to 0 to disable balloon support.
|
" This flag can be set to 0 to disable balloon support.
|
||||||
call ale#Set('set_balloons',
|
let g:ale_set_balloons = get(g:, 'ale_set_balloons',
|
||||||
\ has('balloon_eval') && has('gui_running') ||
|
\ has('balloon_eval') && has('gui_running') ||
|
||||||
\ has('balloon_eval_term') && !has('gui_running')
|
\ has('balloon_eval_term') && !has('gui_running')
|
||||||
\)
|
\)
|
||||||
@ -176,9 +176,9 @@ let g:ale_statusline_format = get(g:, 'ale_statusline_format',
|
|||||||
\)
|
\)
|
||||||
|
|
||||||
" 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
|
||||||
call ale#Set('warn_about_trailing_whitespace', 1)
|
let g:ale_warn_about_trailing_whitespace = get(g:, 'ale_warn_about_trailing_whitespace', 1)
|
||||||
" This flag can be set to 0 to disable warnings for trailing blank lines
|
" This flag can be set to 0 to disable warnings for trailing blank lines
|
||||||
call ale#Set('warn_about_trailing_blank_lines', 1)
|
let g:ale_warn_about_trailing_blank_lines = get(g:, 'ale_warn_about_trailing_blank_lines', 1)
|
||||||
|
|
||||||
" A flag for controlling the maximum size of the command history to store.
|
" A flag for controlling the maximum size of the command history to store.
|
||||||
let g:ale_max_buffer_history_size = get(g:, 'ale_max_buffer_history_size', 20)
|
let g:ale_max_buffer_history_size = get(g:, 'ale_max_buffer_history_size', 20)
|
||||||
@ -191,27 +191,27 @@ let g:ale_history_log_output = get(g:, 'ale_history_log_output', 1)
|
|||||||
|
|
||||||
" A flag for caching failed executable checks.
|
" A flag for caching failed executable checks.
|
||||||
" This is off by default, because it will cause problems.
|
" This is off by default, because it will cause problems.
|
||||||
call ale#Set('cache_executable_check_failures', 0)
|
let g:ale_cache_executable_check_failures = get(g:, 'ale_cache_executable_check_failures', 0)
|
||||||
|
|
||||||
" A dictionary mapping regular expression patterns to arbitrary buffer
|
" A dictionary mapping regular expression patterns to arbitrary buffer
|
||||||
" variables to be set. Useful for configuration ALE based on filename
|
" variables to be set. Useful for configuration ALE based on filename
|
||||||
" patterns.
|
" patterns.
|
||||||
call ale#Set('pattern_options', {})
|
let g:ale_pattern_options = get(g:, 'ale_pattern_options', {})
|
||||||
call ale#Set('pattern_options_enabled', !empty(g:ale_pattern_options))
|
let g:ale_pattern_options_enabled = get(g:, 'ale_pattern_options_enabled', !empty(g:ale_pattern_options))
|
||||||
|
|
||||||
" A maximum file size for checking for errors.
|
" A maximum file size for checking for errors.
|
||||||
call ale#Set('maximum_file_size', 0)
|
let g:ale_maximum_file_size = get(g:, 'ale_maximum_file_size', 0)
|
||||||
|
|
||||||
" Remapping of linter problems.
|
" Remapping of linter problems.
|
||||||
call ale#Set('type_map', {})
|
let g:ale_type_map = get(g:, 'ale_type_map', {})
|
||||||
|
|
||||||
" Enable automatic completion with LSP servers and tsserver
|
" Enable automatic completion with LSP servers and tsserver
|
||||||
call ale#Set('completion_enabled', 0)
|
let g:ale_completion_enabled = get(g:, 'ale_completion_enabled', 0)
|
||||||
call ale#Set('completion_delay', 100)
|
let g:ale_completion_delay = get(g:, 'ale_completion_delay', 100)
|
||||||
call ale#Set('completion_max_suggestions', 50)
|
let g:ale_completion_max_suggestions = get(g:, 'ale_completion_max_suggestions', 50)
|
||||||
|
|
||||||
" A setting for wrapping commands.
|
" A setting for wrapping commands.
|
||||||
call ale#Set('command_wrapper', '')
|
let g:ale_command_wrapper = get(g:, 'ale_command_wrapper', '')
|
||||||
|
|
||||||
if g:ale_set_balloons
|
if g:ale_set_balloons
|
||||||
call ale#balloon#Enable()
|
call ale#balloon#Enable()
|
||||||
|
Loading…
Reference in New Issue
Block a user