diff options
author | w0rp <devw0rp@gmail.com> | 2023-09-06 00:17:27 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2023-09-06 00:17:27 +0100 |
commit | 551fbcfb0905629dcc2afc0db53dcca21994cca3 (patch) | |
tree | 6e29d601783f19aba69a153c75e6c9d1f1a3236e /plugin | |
parent | 8ba7ae818c33c3b9ed9627ae9661f0420d256d7c (diff) | |
download | ale-551fbcfb0905629dcc2afc0db53dcca21994cca3.zip |
Add an option to save hidden buffers
When commands are run, it can be useful to just save the hidden buffers
so language servers immediately get updated with changes to files
without you having to manually save each file. You can now enable this
by setting `g:ale_save_hidden` to `1`.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/ale.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim index f9b6cab8..d926bcfe 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -191,6 +191,9 @@ let g:ale_deno_executable = get(g:, 'ale_deno_executable', 'deno') " If 1, enable a popup menu for commands. let g:ale_popup_menu_enabled = get(g:, 'ale_popup_menu_enabled', has('gui_running')) +" If 0, save hidden files when code actions are applied. +let g:ale_save_hidden = get(g:, 'ale_save_hidden', 0) + " If 1, disables ALE's built in error display. Instead, all errors are piped " to the diagnostics API. let g:ale_use_neovim_diagnostics_api = get(g:, 'ale_use_neovim_diagnostics_api', 0) |