Find sources from any java symbol under the cursor
This is still under development - not ready to use
Using vim-plug
Plug 'quangnguyen30192/java-source-finder', { 'for': 'java' }
Run JavaSyncSources to sync the sources jar from your local repository to a central sources
Bind the keymap (encourage to map to gf
as it works like gf
in vim)
nnoremap gf :JavaFindSources<cr>
{
"quangnguyen30192/java-source-finder.nvim"
ft = "java",
dependencies = {
'vijaymarupudi/nvim-fzf',
}
config = function()
require("java-source-finder").setup({
local_library = vim.env["HOME"] .. "/.m2/src",
package_manager_repository = vim.env["HOME"] .. "/.m2/repository",
java_runtime = "/opt/homebrew/opt/java11/libexec/openjdk.jdk/Contents/Home",
plugin_path = vim.env["HOME"] .. "/dev/repository/personal/java-source-finder",
})
end,
}
- Package manager: maven
- Language: java