mfussenegger / nvim-jdtls

Extensions for the built-in LSP support in Neovim for eclipse.jdt.ls
GNU General Public License v3.0
979 stars 62 forks source link

Better Dependancy Managament [Request] #604

Closed moha-abdi closed 5 months ago

moha-abdi commented 5 months ago

Problem Statement

In our current setup with nvim-jdtls for Neovim, managing Java dependencies can be challenging, especially when we're not using build tools like Maven or Gradle. Users often need to manually edit project configuration files to add or update external libraries, which is inefficient compared to the streamlined processes available in other IDEs or editors.

Ideas or possible solutions

Implement a more user-friendly method for managing Java dependencies directly within Neovim. The goal is to introduce a functionality that allows easy addition, removal, and updating of library dependencies without the need for direct manipulation of configuration files. This would really help a lot of the plugin users including me who don't usually use the build tools like maven, etc.

  1. Dependency Management Interface: Develop a user-friendly interface within Neovim that allows users to interactively manage Java dependencies, including adding, removing, and updating libraries.

  2. Command-Line Integration: Enhance nvim-jdtls with command-line capabilities for dependency management, enabling users to perform these tasks through Neovim commands.

mfussenegger commented 5 months ago

I don't have any plans to add something like that. As far as I'm concerned, not using maven or gradle to manage dependencies is an anti-pattern.

And for those who disagree: Given the modular nature of the neovim lsp modules, it would probably be possible to build something for this in a separate plugin that extends nvim-jdtls