From e9a1cd600a6afbd6ff182dfb6bab910371318a83 Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 4 Jul 2017 00:16:53 +0100 Subject: [PATCH] Store the output of commands by default so I don't have to ask people to turn it on any more. --- doc/ale.txt | 7 ++++--- plugin/ale.vim | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/ale.txt b/doc/ale.txt index 88046227..80547475 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -354,7 +354,7 @@ g:ale_history_enabled *g:ale_history_enabled* g:ale_history_log_output *g:ale_history_log_output* Type: |Number| - Default: `0` + Default: `1` When set to `1`, ALE will store the output of commands which have completed successfully in the command history, and the output will be displayed when @@ -363,8 +363,9 @@ g:ale_history_log_output *g:ale_history_log_output* |g:ale_history_enabled| must be set to `1` for this output to be stored or printed. - ALE will likely consume a lot of memory if this option is on, so it should - only be used for debugging problems with linters. + Some memory will be consumed by this option. It is very useful for figuring + out what went wrong with linters, and for bug reports. Turn this option off + if you want to save on some memory usage. g:ale_keep_list_window_open *g:ale_keep_list_window_open* diff --git a/plugin/ale.vim b/plugin/ale.vim index a42eb50b..c969da97 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -167,7 +167,7 @@ let g:ale_max_buffer_history_size = get(g:, 'ale_max_buffer_history_size', 20) let g:ale_history_enabled = get(g:, 'ale_history_enabled', 1) " A flag for storing the full output of commands in the history. -let g:ale_history_log_output = get(g:, 'ale_history_log_output', 0) +let g:ale_history_log_output = get(g:, 'ale_history_log_output', 1) " A dictionary mapping regular expression patterns to arbitrary buffer " variables to be set. Useful for configuration ALE based on filename