Show more ALE variables in ALEInfo
This commit is contained in:
parent
5285b0b332
commit
c9d66b861b
2 changed files with 72 additions and 9 deletions
|
@ -2,30 +2,55 @@
|
|||
" Description: This file implements debugging information for ALE
|
||||
|
||||
let s:global_variable_list = [
|
||||
\ 'ale_cache_executable_check_failures',
|
||||
\ 'ale_change_sign_column_color',
|
||||
\ 'ale_command_wrapper',
|
||||
\ 'ale_completion_delay',
|
||||
\ 'ale_completion_enabled',
|
||||
\ 'ale_completion_max_suggestions',
|
||||
\ 'ale_echo_cursor',
|
||||
\ 'ale_echo_msg_error_str',
|
||||
\ 'ale_echo_msg_format',
|
||||
\ 'ale_echo_msg_info_str',
|
||||
\ 'ale_echo_msg_warning_str',
|
||||
\ 'ale_enabled',
|
||||
\ 'ale_fix_on_save',
|
||||
\ 'ale_fixers',
|
||||
\ 'ale_history_enabled',
|
||||
\ 'ale_history_log_output',
|
||||
\ 'ale_keep_list_window_open',
|
||||
\ 'ale_lint_delay',
|
||||
\ 'ale_lint_on_enter',
|
||||
\ 'ale_lint_on_filetype_changed',
|
||||
\ 'ale_lint_on_save',
|
||||
\ 'ale_lint_on_text_changed',
|
||||
\ 'ale_lint_on_insert_leave',
|
||||
\ 'ale_linter_aliases',
|
||||
\ 'ale_linters',
|
||||
\ 'ale_linters_explicit',
|
||||
\ 'ale_list_window_size',
|
||||
\ 'ale_loclist_msg_format',
|
||||
\ 'ale_max_buffer_history_size',
|
||||
\ 'ale_max_signs',
|
||||
\ 'ale_maximum_file_size',
|
||||
\ 'ale_open_list',
|
||||
\ 'ale_pattern_options',
|
||||
\ 'ale_pattern_options_enabled',
|
||||
\ 'ale_set_balloons',
|
||||
\ 'ale_set_highlights',
|
||||
\ 'ale_set_loclist',
|
||||
\ 'ale_set_quickfix',
|
||||
\ 'ale_set_signs',
|
||||
\ 'ale_sign_column_always',
|
||||
\ 'ale_sign_error',
|
||||
\ 'ale_sign_info',
|
||||
\ 'ale_sign_offset',
|
||||
\ 'ale_sign_style_error',
|
||||
\ 'ale_sign_style_warning',
|
||||
\ 'ale_sign_warning',
|
||||
\ 'ale_statusline_format',
|
||||
\ 'ale_type_map',
|
||||
\ 'ale_warn_about_trailing_blank_lines',
|
||||
\ 'ale_warn_about_trailing_whitespace',
|
||||
\]
|
||||
|
||||
|
|
|
@ -1,14 +1,30 @@
|
|||
Before:
|
||||
Save g:ale_warn_about_trailing_whitespace
|
||||
Save g:ale_linters
|
||||
Save g:ale_fixers
|
||||
Save g:ale_lint_on_text_changed
|
||||
Save g:ale_buffer_info
|
||||
Save g:ale_cache_executable_check_failures
|
||||
Save g:ale_completion_enabled
|
||||
Save g:ale_fixers
|
||||
Save g:ale_history_log_output
|
||||
Save g:ale_lint_on_insert_leave
|
||||
Save g:ale_lint_on_text_changed
|
||||
Save g:ale_linters
|
||||
Save g:ale_maximum_file_size
|
||||
Save g:ale_pattern_options
|
||||
Save g:ale_pattern_options_enabled
|
||||
Save g:ale_set_balloons
|
||||
Save g:ale_warn_about_trailing_whitespace
|
||||
|
||||
unlet! b:ale_history
|
||||
|
||||
let g:ale_lint_on_text_changed = 'always'
|
||||
let g:ale_buffer_info = {}
|
||||
let g:ale_cache_executable_check_failures = 0
|
||||
let g:ale_completion_enabled = 0
|
||||
let g:ale_history_log_output = 1
|
||||
let g:ale_lint_on_insert_leave = 0
|
||||
let g:ale_lint_on_text_changed = 'always'
|
||||
let g:ale_maximum_file_size = 0
|
||||
let g:ale_pattern_options = {}
|
||||
let g:ale_pattern_options_enabled = 0
|
||||
let g:ale_set_balloons = 0
|
||||
let g:ale_warn_about_trailing_whitespace = 1
|
||||
|
||||
let g:testlinter1 = {'name': 'testlinter1', 'executable': 'testlinter1', 'command': 'testlinter1', 'callback': 'testCB1', 'output_stream': 'stdout'}
|
||||
|
@ -23,30 +39,55 @@ Before:
|
|||
let g:globals_lines = [
|
||||
\ ' Global Variables:',
|
||||
\ '',
|
||||
\ 'let g:ale_cache_executable_check_failures = 0',
|
||||
\ 'let g:ale_change_sign_column_color = 0',
|
||||
\ 'let g:ale_command_wrapper = ''''',
|
||||
\ 'let g:ale_completion_delay = 100',
|
||||
\ 'let g:ale_completion_enabled = 0',
|
||||
\ 'let g:ale_completion_max_suggestions = 50',
|
||||
\ 'let g:ale_echo_cursor = 1',
|
||||
\ 'let g:ale_echo_msg_error_str = ''Error''',
|
||||
\ 'let g:ale_echo_msg_format = ''%code: %%s''',
|
||||
\ 'let g:ale_echo_msg_info_str = ''Info''',
|
||||
\ 'let g:ale_echo_msg_warning_str = ''Warning''',
|
||||
\ 'let g:ale_enabled = 1',
|
||||
\ 'let g:ale_fix_on_save = 0',
|
||||
\ 'let g:ale_fixers = {}',
|
||||
\ 'let g:ale_history_enabled = 1',
|
||||
\ 'let g:ale_history_log_output = 1',
|
||||
\ 'let g:ale_keep_list_window_open = 0',
|
||||
\ 'let g:ale_lint_delay = 200',
|
||||
\ 'let g:ale_lint_on_enter = 1',
|
||||
\ 'let g:ale_lint_on_filetype_changed = 1',
|
||||
\ 'let g:ale_lint_on_save = 1',
|
||||
\ 'let g:ale_lint_on_text_changed = ''always''',
|
||||
\ 'let g:ale_lint_on_insert_leave = 0',
|
||||
\ 'let g:ale_linter_aliases = {}',
|
||||
\ 'let g:ale_linters = {}',
|
||||
\ 'let g:ale_linters_explicit = 0',
|
||||
\ 'let g:ale_list_window_size = 10',
|
||||
\ 'let g:ale_loclist_msg_format = ''%code: %%s''',
|
||||
\ 'let g:ale_max_buffer_history_size = 20',
|
||||
\ 'let g:ale_max_signs = -1',
|
||||
\ 'let g:ale_maximum_file_size = 0',
|
||||
\ 'let g:ale_open_list = 0',
|
||||
\ 'let g:ale_pattern_options = {}',
|
||||
\ 'let g:ale_pattern_options_enabled = 0',
|
||||
\ 'let g:ale_set_balloons = 0',
|
||||
\ 'let g:ale_set_highlights = 1',
|
||||
\ 'let g:ale_set_loclist = 1',
|
||||
\ 'let g:ale_set_quickfix = 0',
|
||||
\ 'let g:ale_set_signs = 1',
|
||||
\ 'let g:ale_sign_column_always = 0',
|
||||
\ 'let g:ale_sign_error = ''>>''',
|
||||
\ 'let g:ale_sign_info = ''--''',
|
||||
\ 'let g:ale_sign_offset = 1000000',
|
||||
\ 'let g:ale_sign_style_error = ''>>''',
|
||||
\ 'let g:ale_sign_style_warning = ''--''',
|
||||
\ 'let g:ale_sign_warning = ''--''',
|
||||
\ 'let g:ale_statusline_format = [''%d error(s)'', ''%d warning(s)'', ''OK'']',
|
||||
\ 'let g:ale_type_map = {}',
|
||||
\ 'let g:ale_warn_about_trailing_blank_lines = 1',
|
||||
\ 'let g:ale_warn_about_trailing_whitespace = 1',
|
||||
\]
|
||||
let g:command_header = [
|
||||
|
@ -66,8 +107,6 @@ Before:
|
|||
After:
|
||||
Restore
|
||||
|
||||
let g:ale_buffer_info = {}
|
||||
|
||||
unlet! g:testlinter1
|
||||
unlet! g:testlinter2
|
||||
|
||||
|
@ -76,8 +115,6 @@ After:
|
|||
unlet! g:output
|
||||
unlet! g:globals_string
|
||||
unlet! g:command_header
|
||||
let g:ale_buffer_info = {}
|
||||
let g:ale_history_log_output = 0
|
||||
unlet! g:ale_testft_testlinter1_foo
|
||||
unlet! g:ale_testft_testlinter1_bar
|
||||
unlet! g:ale_testft2_testlinter2_foo
|
||||
|
@ -378,6 +415,7 @@ Execute (ALEInfo should include executable checks in the history):
|
|||
|
||||
Execute (The option for caching failing executable checks should work):
|
||||
let g:ale_cache_executable_check_failures = 1
|
||||
let g:globals_lines[2] = 'let g:ale_cache_executable_check_failures = 1'
|
||||
|
||||
call ale#linter#Define('testft', g:testlinter1)
|
||||
|
||||
|
|
Reference in a new issue