mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-12 05:01:47 +08:00
Enable autoimport by default (#4102)
This commit is contained in:
16
doc/ale.txt
16
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*
|
||||
|
||||
Reference in New Issue
Block a user