From df1ff5f85df8d4b7b8d92215084d7c183520893f Mon Sep 17 00:00:00 2001 From: Joao Louceiro <89097431+joaoLouceiro@users.noreply.github.com> Date: Wed, 10 Dec 2025 10:58:37 +0000 Subject: [PATCH 1/3] fix(doc): invalid JDTLS settings in README (#451) The default_config section in JDTLS settings makes it so nvim-java can't find the list of JDKs. --- README.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 3110ad2..5137180 100644 --- a/README.md +++ b/README.md @@ -284,16 +284,14 @@ Use `vim.lsp.config()` to override the default JDTLS settings: ```lua vim.lsp.config('jdtls', { - default_config = { - settings = { - java = { - configuration = { - runtimes = { - { - name = "JavaSE-21", - path = "/opt/jdk-21", - default = true, - } + settings = { + java = { + configuration = { + runtimes = { + { + name = "JavaSE-21", + path = "/opt/jdk-21", + default = true, } } } From 61ba7e0e668863dda8693c3f6489788a9a00eab7 Mon Sep 17 00:00:00 2001 From: Joao Louceiro <89097431+joaoLouceiro@users.noreply.github.com> Date: Wed, 10 Dec 2025 11:07:17 +0000 Subject: [PATCH 2/3] chore(log): fix exit code message formatting in Run:on_job_exit (#452) Adding a new line after the exit code improves the readability of the log. --- lua/java-runner/run.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/java-runner/run.lua b/lua/java-runner/run.lua index c110589..41fc87e 100644 --- a/lua/java-runner/run.lua +++ b/lua/java-runner/run.lua @@ -72,7 +72,7 @@ end ---Runs when the current job exists ---@param exit_code number function Run:on_job_exit(exit_code) - local message = string.format('Process finished with exit code::%s', exit_code) + local message = string.format('Process finished with exit code::%s\n', exit_code) self:send_term(message) self.is_running = false From 2855091884515756383df0414c9a344fb3aca5ad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 10 Dec 2025 16:37:51 +0530 Subject: [PATCH 3/3] chore(main): release 4.0.3 (#454) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd72263..eefe98e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.0.3](https://github.com/nvim-java/nvim-java/compare/v4.0.2...v4.0.3) (2025-12-10) + + +### Bug Fixes + +* **doc:** invalid JDTLS settings in README ([#451](https://github.com/nvim-java/nvim-java/issues/451)) ([df1ff5f](https://github.com/nvim-java/nvim-java/commit/df1ff5f85df8d4b7b8d92215084d7c183520893f)) + ## [4.0.2](https://github.com/nvim-java/nvim-java/compare/v4.0.1...v4.0.2) (2025-12-10)