summaryrefslogtreecommitdiff
path: root/doc/ale.txt
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2023-09-06 00:17:27 +0100
committerw0rp <devw0rp@gmail.com>2023-09-06 00:17:27 +0100
commit551fbcfb0905629dcc2afc0db53dcca21994cca3 (patch)
tree6e29d601783f19aba69a153c75e6c9d1f1a3236e /doc/ale.txt
parent8ba7ae818c33c3b9ed9627ae9661f0420d256d7c (diff)
downloadale-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 'doc/ale.txt')
-rw-r--r--doc/ale.txt18
1 files changed, 14 insertions, 4 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index 5b411b58..189839cf 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -1260,7 +1260,6 @@ g:ale_floating_preview_popup_opts *g:ale_floating_preview_popup_opts*
let g:ale_floating_preview_popup_opts = 'g:CustomOpts'
<
-
g:ale_floating_window_border *g:ale_floating_window_border*
Type: |List|
@@ -1974,6 +1973,16 @@ g:ale_root *g:ale_root*
LSP linter, it will not run.
+g:ale_save_hidden *g:ale_save_hidden*
+
+ Type: |Number|
+ Default: `0`
+
+ When set to `1`, save buffers when 'hidden' is set when applying code
+ actions or rename operations, such as through |ALERename| or
+ |ALEOrganizeImports|.
+
+
g:ale_set_balloons *g:ale_set_balloons*
*b:ale_set_balloons*
@@ -3646,14 +3655,15 @@ ALERename *ALERename*
The symbol where the cursor is resting will be the symbol renamed, and a
prompt will open to request a new name.
- The rename operation will save all modified buffers when `set nohidden` is
- set, because that disables leaving unsaved buffers in the background. See
- `:help hidden` for more details.
+ The rename operation will not save modified buffers when 'hidden' is on
+ unless |g:ale_save_hidden| is `1`.
+
ALEFileRename *ALEFileRename*
Rename a file and fix imports using `tsserver`.
+
ALECodeAction *ALECodeAction*
Apply a code action via LSP servers or `tsserver`.