What does let g:ale_completion_autoimport means? #4077
-
|
The documentation is fairly cryptic and it is difficult for me to understand what is it. Thanks! :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
If you use a LSP that supports completions (e.g. eclipselsp for Java) then whenever you get auto-completion results for a class you do not have imported, then ALE will automatically add the import to your file. See in the example below how the LocalDate class is autoimported after selecting an autocompletion item: Note again that this works only if you have enabled a LSP linter for your language (C?) that support autocompletion with extra edit text attributes. I know eclipselsp does but have no idea about C LSP linters. |
Beta Was this translation helpful? Give feedback.

If you use a LSP that supports completions (e.g. eclipselsp for Java) then whenever you get auto-completion results for a class you do not have imported, then ALE will automatically add the import to your file. See in the example below how the LocalDate class is autoimported after selecting an autocompletion item:
Note again that this works only if you have enabled a LSP linter for your language (C?) that support autocompletion with extra edit text attributes. I know eclipselsp does but have no idea about C LSP linters.