Skip to content

feature: dependency view #81

Open
Open

Description

@0xilly

Did you check the docs?

  • I have read all the docs

Is your feature request related to a problem? Please describe.

A feature that's always lacked from vim LSPs is a dependency view being able to see the libraries/dependencies that my projects relies on.

More info: https://github.com/orgs/nvim-java/discussions/78

Describe the solution you'd like

A way to see and look at the dependancies provided by maven/gradle/ant+ivy

Describe alternatives you've considered

keeping an instance of IntelliJ open.

Additional context

No response

Activity

  1. s1n7ax commented on Dec 15, 2023

    @s1n7ax
    Member

    Added to the backlog but this will not be implemented soon

  2. added this to the v3.0.0 milestone on Dec 16, 2023
  3. mycf commented on May 3, 2024

    @mycf
  4. PiotrRaszkowski commented on Oct 15, 2024

    @PiotrRaszkowski

    @mycf have you configured the java-deps plugin?
    I am struggling with...

    -- jdtls lsp attach
    require("java-deps").attach(client, buffer, root_dir)

    any idea?

  5. mycf commented on Oct 16, 2024

    @mycf

    @PiotrRaszkowski You can do that

          vim.api.nvim_create_autocmd("LspAttach", {
            callback = function(args)
              local client = vim.lsp.get_client_by_id(args.data.client_id)
              if client and client.name == "jdtls" then
                  require("java-deps").attach(client, args.buf)
                  vim.api.nvim_buf_create_user_command(args.buf, "JavaProjects", require("java-deps").toggle_outline, {
                    nargs = 0,
                  })
              end
            end,
          })
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions