Jump to definition in java libraries #375
-
Hi! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @antosha417! Yes, this should totally work. Is this some methods in a Scala file, or are you actually in a Java file? If you're in a Java file and looking for some navigation you'll want to make sure you have api.nvim_create_autocmd("FileType", {
pattern = { "scala", "sbt", "java" },
callback = function()
require("metals").initialize_or_attach(metals_config)
end,
group = nvim_metals_group,
}) Do you have that? Also, could you take a look at the |
Beta Was this translation helpful? Give feedback.
Hey @antosha417! Yes, this should totally work. Is this some methods in a Scala file, or are you actually in a Java file? If you're in a Java file and looking for some navigation you'll want to make sure you have
java
in the filetype autocmd that starts Metals. Like:Do you have that? Also, could you take a look at the
:MetalsRunDoctor
? Do you see anything funky in there?