You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+10-3
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,15 @@ If you are working in an Android project then set the *g:android_sdk_path* with
24
24
25
25
Open a java, kotlin or xml source file and this plugin will automatically kick in and perform some tasks:
26
26
27
-
- Execute a custom vim gradle task to inspect the project and extract dependencies, project names, and android sdk versions.
28
-
- Set CLASSPATH environment variable with the JAR dependencies of the project and the Android SDK jar.
27
+
- Execute a custom vim gradle task to inspect the project and extract
28
+
dependencies, project names, and android sdk versions.
29
+
- Set CLASSPATH environment variable with the JAR dependencies of the project
30
+
and the Android SDK jar.
29
31
- Set SRCPATH environment variables with the project source sets.
30
32
- Create Gradle and Android commands that can be used to invoke gradle tasks.
33
+
- Send didChangeConfiguration notification with Gradle and Android dependencies to `eclipselsp` (jdtls) or `javalsp` (java-language-server) if you have them configured with [ALE](https://github.com/dense-analysis/ale)
31
34
32
-
Once the plugin finishes loading the Gradle command becomes available to use:
35
+
Once the plugin finishes synchronizing gradle dependencies the Gradle command becomes available to use:
33
36
34
37
:Gradle <task>
35
38
@@ -60,6 +63,10 @@ Combined with the ligthline plugin my status line looks like the following scree
60
63
- Improved XML omnicompletion for android resource and manifest files. Thanks to [Donnie West](https://github.com/DonnieWest).
61
64
- Customizable status line method that can be integrated with status line plugins (e.g. airline)
62
65
66
+
## ALE
67
+
68
+
In addition if you have [ALE](https://github.com/dense-analysis/ale) installed with either `eclipselsp` (recommended) or `javalsp` language servers, this plugin will send a [workspace/didChangeConfiguration](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_didChangeConfigurationmessage) notification to the language server with all gradle and Android dependencies. This enables ALE to auto-complete, auto-import, and go to definition of all dependencies, including Android core and generated classes (e.g. Activity, R, etc).
69
+
63
70
# Details
64
71
65
72
Refer to the [doc/vim-android.txt](doc/vim-android.txt) file for details on usage and configuration of this plugin.
0 commit comments