summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHoracio Sanson <hsanson@gmail.com>2022-03-05 04:05:41 +0900
committerGitHub <noreply@github.com>2022-03-04 19:05:41 +0000
commitc173b6243d4d4c9d9c772d6850450447eb478fe6 (patch)
tree4b273199352a65c6985a843738f7cfbecfb936a6 /doc
parente490e87a60af7c5c630434aa7d980d01b4d03ecc (diff)
downloadale-c173b6243d4d4c9d9c772d6850450447eb478fe6.zip
Enable autoimport by default (#4102)
Diffstat (limited to 'doc')
-rw-r--r--doc/ale.txt16
1 files changed, 10 insertions, 6 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index 032e192e..ec2cf6e0 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -546,8 +546,10 @@ The |ALEComplete| command can be used to show completion suggestions manually,
even when |g:ale_completion_enabled| is set to `0`. For manually requesting
completion information with Deoplete, consult Deoplete's documentation.
-ALE by can support automatic imports from external modules. This behavior can
-be enabled by setting the |g:ale_completion_autoimport| variable to `1`.
+ALE supports automatic imports from external modules. This behavior can be
+disabled by setting the |g:ale_completion_autoimport| variable to `0`.
+Disabling automatic imports can drop some or all completion items from
+some LSP servers (e.g. eclipselsp).
You can manually request imports for symbols at the cursor with the
|ALEImport| command. The word at the cursor must be an exact match for some
@@ -862,11 +864,13 @@ g:ale_completion_tsserver_remove_warnings
g:ale_completion_autoimport *g:ale_completion_autoimport*
Type: Number
- Default: `0`
+ Default: `1`
- When this option is set to `0`, ALE will not try to automatically import
- completion results from external modules. It can be enabled by setting it
- to `1`.
+ When this option is set to `1`, ALE will try to automatically import
+ completion results from external modules. It can be disabled by setting it
+ to `0`. Some LSP servers include auto imports on every completion item so
+ disabling automatic imports may drop some or all completion items returnend
+ by it (e.g. eclipselsp).
g:ale_completion_excluded_words *g:ale_completion_excluded_words*