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
autocomplete for dependencies in pom.xml files in general
Describe the solution you'd like
lemminx-maven a plugin for the xml LSP lemminx that adds features for autocomplete etc. in pom.xml files. However, it is not available through Mason. I thought it might be a good idea to (optionally) provide it through this plugin, perhaps through the nvim-java mason registry, which could replace the standard version of lemminx with this patched version. Is there any interest or is this out of scope?
Describe alternatives you've considered
downloading, compiling, and adding lemminx-maven to the system path manually
writing a standalone lua module to accomplish the above
using a local registry (only intended for local testing, needs to be installed every time neovim is started)
similar capabilities are provided through vscode-maven as a jdtls extension but would require writing additional client logic
I don't know why you need similar functionality in nvim-java, it's just extension to non native (jar based) lemminx ls.
In mason registry only native lemminx, it's not extendable, you need jar based (non native) one. I don't believe that mason will accept both java native and non native version of lemminx ls into main stream.
BTW, we are dropping support for Mason.nvim due to amount of annoying issues we are getting. So, in the next release, we are dropping nvim-java/mason-registry.
@s1n7ax I mean, that mason lemminx version, it's java native binary (by graalvm to be more accurate), and it can't be extended with maven extension (or any jar based extensions).
you can check it in vscode binaries to lemminx, or by explanation in this thread:
it's the main reason why I had to build jars from sources by my self manually to be able to provide maven jars, and to successfully extend lemminx in the result.
but it will be great to have all that bundle in mason registry.
Sorry for my hard explanation, english is not my native language
@sergii-dudar OP doesn't ask for a maven extension or plugin. They ask if they can have code completion in pom.xml. I don't see what does maven extension or whatever has to do with it.
Activity
logrusx commentedon Aug 26, 2025
Have you tried requesting it in Mason repo?
sergii-dudar commentedon Nov 24, 2025
I don't know why you need similar functionality in nvim-java, it's just extension to non native (jar based) lemminx ls.
In mason registry only native lemminx, it's not extendable, you need jar based (non native) one. I don't believe that mason will accept both java native and non native version of lemminx ls into main stream.
Here is how it's done in my config (link to my answer in lemminx-maven discussion about nvim config) eclipse-lemminx/lemminx-maven#588 (comment)
s1n7ax commentedon Nov 25, 2025
BTW, we are dropping support for Mason.nvim due to amount of annoying issues we are getting. So, in the next release, we are dropping
nvim-java/mason-registry.Don't understand what @sergii-dudar said.
BUT
I would like to add this as long as,
eclipse-lemminx/lemminx-maven#588 (comment)
This looks pretty simple, except jar has to be built from source.
https://github.com/sergii-dudar/dotfiles/blob/master/nvim/.config/nvim/lua/plugins/editor/java/lemminx-ls.lua
sergii-dudar commentedon Nov 26, 2025
@s1n7ax I mean, that mason lemminx version, it's java native binary (by graalvm to be more accurate), and it can't be extended with maven extension (or any jar based extensions).
you can check it in vscode binaries to lemminx, or by explanation in this thread:
eclipse-lemminx/lemminx-maven#588 (comment)
it's the main reason why I had to build jars from sources by my self manually to be able to provide maven jars, and to successfully extend lemminx in the result.
but it will be great to have all that bundle in mason registry.
Sorry for my hard explanation, english is not my native language
logrusx commentedon Nov 26, 2025
@sergii-dudar OP doesn't ask for a maven extension or plugin. They ask if they can have code completion in pom.xml. I don't see what does maven extension or whatever has to do with it.