You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set up nvim as an IDE replacement for Java development. I'm using the nvim-jdtls plugin to configure pkgs.jdt-language-server and am struggling to get the integration between nvim-jdtls and nvim-dap working.
You do not have to define dap.adapters.java yourself.
However, when I try to debug an application by calling :DapContinue the status line says
No configuration found for java. You need to add configs to dap.configurations.java (See :h dap-configuration)
My configuration looks like this:
# java.nix{lib,pkgs,
...
}: letsingleFile=dir: letfiles=builtins.attrNames(builtins.readDirdir);inifbuiltins.lengthfiles==1then"${dir}/${(builtins.elemAtfiles0)}"elsethrow"Directory ${dir} does not contain exactly one file.";in{programs.nixvim.plugins.nvim-jdtls={enable=true;cmd=[(lib.getExepkgs.jdt-language-server)];initOptions={bundles=[(singleFile"${pkgs.vscode-extensions.vscjava.vscode-java-debug}/share/vscode/extensions/vscjava.vscode-java-debug/server")];};};}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to set up nvim as an IDE replacement for Java development. I'm using the nvim-jdtls plugin to configure
pkgs.jdt-language-server
and am struggling to get the integration between nvim-jdtls and nvim-dap working.nvim-dap's documentation states:
However, when I try to debug an application by calling
:DapContinue
the status line saysMy configuration looks like this:
And then another file that include the two and some other configurations.
Beta Was this translation helpful? Give feedback.
All reactions