Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
nvim-java

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Library view and navigating dependencies#78

Closed Pinned
dphaldes started this conversation inGeneral
Discussion options

(This might be out of scope for this plugin specifically)

I often find myself looking through classes and file structure of my dependencies to look at the API or figure out how specific things are done in provided examples and library classes (sources). It would be really helpful if there was a way to look at all dependencies/libraries at a glance and traverse through them in some kind of tree (maybe even an extension to neo-tree).

How do you tackle such a situation? Could we have a system in place fornvim-java to look through the jars? Or should a generalized approach through plugin is the way to go ?

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

Found some projects that might be helpfulhttps://github.com/uzxmx/coc-java-dependency andhttps://github.com/Microsoft/vscode-java-dependency. The latter one is a jdtls extension, and hopefully we can just plug it intonvim-java

Edit : Other related projects that might also be helpfulhttps://github.com/microsoft/vscode-gradle &https://github.com/Microsoft/vscode-maven. I couldn't see specific classes/files being accessed through these, but be helpful for implementation or something

You must be logged in to vote
2 replies
@s1n7ax
Comment options

Thanks. This is not possible right now but adding this to the backlog. It should be possible to use neo-tree as the view. You can view them here but this will not be implemented soon
Java for Neovim (view)

@PiotrRaszkowski
Comment options

https://github.com/JavaHello/java-deps.nvim could be the option... but...

they suggest:
local function jdtls_on_attach(client, bufnr)
local root_dir = require('jdtls').setup.find_root(root_files)
require("java-deps").attach(client, bufnr, root_dir)

I don't know how to get the root_dir in nvim-java :(

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
3 participants
@dphaldes@PiotrRaszkowski@s1n7ax

[8]ページ先頭

©2009-2025 Movatter.jp