diff --git a/doc/nvim-java-core.txt b/doc/nvim-java-core.txt index 2207d09..de275a0 100644 --- a/doc/nvim-java-core.txt +++ b/doc/nvim-java-core.txt @@ -1,64 +1,20 @@ -*nvim-java-core.txt* For Neovim >= 0.9.4 Last change: 2023 November 15 +*nvim-java-core.txt* For Neovim >= 0.9.4 Last change: 2023 December 10 ============================================================================== Table of Contents *nvim-java-core-table-of-contents* 1. nvim-java-core |nvim-java-core-nvim-java-core| - - Features |nvim-java-core-features| - - Why |nvim-java-core-why| - - How to Use |nvim-java-core-how-to-use| + - Head on to main project nvim-java|nvim-java-core-head-on-to-main-project-nvim-java| ============================================================================== 1. nvim-java-core *nvim-java-core-nvim-java-core* -No need to put up with jdtls -nonsense anymore. Just install and start writing `public static void -main(String[] args)`. +This project includes anything and everything to do with communicating to jdtls -FEATURES *nvim-java-core-features* - -are supported features. are pending features. - -- Diagnostics & Auto Completion -- Automatic DAP debug configuration -- Running tests - - -WHY *nvim-java-core-why* - -- Uses nvim-lspconfig <> to setup `jdtls` -- Uses `jdtls` and auto loads `jdtls` plugins from mason.nvim (If they are installed) - - Supported plugins are, - - `lombok` (mason `jdtls` package contains the lombok jar. So no need to installed it separately) - - `java-test` - - `java-debug-adapter` -- Typed & documented APIs -- No callback hells I promise - - -HOW TO USE *nvim-java-core-how-to-use* - ->lua - local java = require('java-core') - local dap = require("java.dap") - - -- update dap config on attach event - dap.setup_dap_on_attach() - - require('lspconfig').jdtls.setup(java.get_config()) - - vim.api.nvim_create_autocmd('LspAttach', { - callback = function(args) - local buffer = args.buf - - -- add your language server keymaps here - end, - group = vim.api.nvim_create_augroup('LSP Keymaps', {}), - }) -< +HEAD ON TO MAIN PROJECT NVIM-JAVA*nvim-java-core-head-on-to-main-project-nvim-java* ============================================================================== 2. Links *nvim-java-core-links*