From d1233ccc101866bcbea394c51b7c0780bf98bb9d Mon Sep 17 00:00:00 2001 From: Srinesh Nisala Date: Wed, 13 Dec 2023 18:55:32 +0000 Subject: [PATCH 1/4] fix: goto definition error out due to buffer is not modifiable (#74) --- lua/java/startup/decompile-watcher.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/java/startup/decompile-watcher.lua b/lua/java/startup/decompile-watcher.lua index 5f5e8e1..078cc44 100644 --- a/lua/java/startup/decompile-watcher.lua +++ b/lua/java/startup/decompile-watcher.lua @@ -29,6 +29,9 @@ function M.setup() :java_decompile(opts.file) local lines = vim.split(text, '\n') + + vim.bo[buffer].modifiable = true + vim.api.nvim_buf_set_lines(buffer, 0, -1, true, lines) vim.bo[buffer].swapfile = false @@ -44,7 +47,7 @@ function M.setup() .catch(get_error_handler('decompilation failed for ' .. opts.file)) .run() - vim.wait(3000, function() + vim.wait(10000, function() return done end) end, From 0b01f6e123339845c4c1bfd7a53c23ab5796452c Mon Sep 17 00:00:00 2001 From: Srinesh Nisala Date: Wed, 13 Dec 2023 19:11:47 +0000 Subject: [PATCH 2/4] chore: add link to lazyvim installation instructions (#77) --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index db10b0f..c12c85f 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,11 @@ https://github.com/nvim-java/nvim-java/assets/18459807/047c8c46-9a0a-4869-b342-d :small_orange_diamond:details +### Distributions: +- [Lazyvim](https://github.com/nvim-java/nvim-java/wiki/Lazyvim) + +### Custom: + - Install the plugin Using [lazy.nvim](https://github.com/folke/lazy.nvim) @@ -143,11 +148,12 @@ require('java').test.view_last_report() ## :clamp: How to Use JDK X.X Version? +
:small_orange_diamond:details -**Method 1:** +### Method 1: [Neoconf](https://github.com/folke/neoconf.nvim) can be used to manage LSP setting including jdtls. Neoconf allows global configuration as well as project vice configurations. Here is how you can set Jdtls setting on `neoconf.json` @@ -163,12 +169,12 @@ global configuration as well as project vice configurations. Here is how you can "default": true } ] - }, + } } } ``` -**Method 2:** +### Method 2: Pass the settings to Jdtls setup. From f88c965a23952408649b99ab8a04c157d5d21eb6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 19:52:04 +0000 Subject: [PATCH 3/4] chore(doc): automatic vimdoc update (#72) Co-authored-by: s1n7ax --- doc/nvim-java.txt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/doc/nvim-java.txt b/doc/nvim-java.txt index d32e2c4..da24c61 100644 --- a/doc/nvim-java.txt +++ b/doc/nvim-java.txt @@ -1,4 +1,4 @@ -*nvim-java.txt* For Neovim >= 0.9.4 Last change: 2023 December 10 +*nvim-java.txt* For Neovim >= 0.9.4 Last change: 2023 December 13 ============================================================================== Table of Contents *nvim-java-table-of-contents* @@ -51,6 +51,14 @@ HOW TO INSTALL *nvim-java-how-to-install* :small_orange_diamond:details ~ + +DISTRIBUTIONS: ~ + +- Lazyvim + + +CUSTOM: ~ + - Install the plugin Using lazy.nvim @@ -155,7 +163,8 @@ HOW TO USE JDK X.X VERSION? *nvim-java-how-to-use-jdk-x.x-version?* :small_orange_diamond:details ~ -**Method 1:** + +METHOD 1: ~ Neoconf can be used to manage LSP setting including jdtls. Neoconf allows global configuration as well as project @@ -172,12 +181,13 @@ vice configurations. Here is how you can set Jdtls setting on `neoconf.json` "default": true } ] - }, + } } } < -**Method 2:** + +METHOD 2: ~ Pass the settings to Jdtls setup. From c5c509ee062ee682b01584e228954c5d504894c4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 19:53:23 +0000 Subject: [PATCH 4/4] chore(main): release 1.0.1 (#75) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Srinesh Nisala --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05de018..a4e1bc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.0.1](https://github.com/nvim-java/nvim-java/compare/v1.0.0...v1.0.1) (2023-12-13) + + +### Bug Fixes + +* goto definition error out due to buffer is not modifiable ([#74](https://github.com/nvim-java/nvim-java/issues/74)) ([d1233cc](https://github.com/nvim-java/nvim-java/commit/d1233ccc101866bcbea394c51b7c0780bf98bb9d)) + ## 1.0.0 (2023-12-10)