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) 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, } } } 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