nvim-jdtls
coc-java
nvim-jdtls | coc-java | |
---|---|---|
75 | 9 | |
1,049 | 448 | |
- | 0.2% | |
6.5 | 2.9 | |
about 1 month ago | 21 days ago | |
Lua | TypeScript | |
GNU General Public License v3.0 only | Eclipse Public License 1.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nvim-jdtls
-
Having the worst time trying to use JDTLS
I recommend that you do not configure jdtls like the other language servers, it is better to use the nvim-jdtls plugin.
-
Noob here, would neovim work for my usecase
Java is actually pretty good with Neovim, jdtls and this plugin. One of the best language servers and I'm using it on a regular base with medium to large projects, mostly spring-based. No Android though.
-
Client 2 quit with exit code 1 and signal 0 when opening a .java files
-- See `:help vim.lsp.start_client` for an overview of the supported `config` options. local config = { -- The command that starts the language server -- See: https://github.com/eclipse/eclipse.jdt.ls#running-from-the-command-line cmd = { -- 💀 'java', -- or '/path/to/java17_or_newer/bin/java' -- depends on if `java` is in your $PATH env variable and if it points to the right version. '-Declipse.application=org.eclipse.jdt.ls.core.id1', '-Dosgi.bundles.defaultStartLevel=4', '-Declipse.product=org.eclipse.jdt.ls.core.product', '-Dlog.protocol=true', '-Dlog.level=ALL', '-Xmx1g', '--add-modules=ALL-SYSTEM', '--add-opens', 'java.base/java.util=ALL-UNNAMED', '--add-opens', 'java.base/java.lang=ALL-UNNAMED', -- 💀 '-jar', '~/.local/share/nvim/mason/packages/jdtls/plugins/org.eclipse.equinox.launcher_1.6.500.v20230717-2134.jar', -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ -- Must point to the Change this to -- eclipse.jdt.ls installation the actual version -- 💀 '-configuration', '~/.local/share/nvim/mason/packages/jdtls/config_linux', -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ -- Must point to the Change to one of `linux`, `win` or `mac` -- eclipse.jdt.ls installation Depending on your system. -- 💀 -- See `data directory configuration` section in the README '-data', '/path/to/unique/per/project/workspace/folder' }, -- 💀 -- This is the default if not provided, you can remove it. Or adjust as needed. -- One dedicated LSP server & client will be started per unique root_dir root_dir = require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'}), -- Here you can configure eclipse.jdt.ls specific settings -- See https://github.com/eclipse/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line#initialize-request -- for a list of options settings = { java = { } }, -- Language server `initializationOptions` -- You need to extend the `bundles` with paths to jar files -- if you want to use additional eclipse.jdt.ls plugins. -- -- See https://github.com/mfussenegger/nvim-jdtls#java-debug-installation -- -- If you don't plan on using the debugger or other eclipse.jdt.ls plugins you can remove this init_options = { bundles = {} }, } -- This starts a new client & server, -- or attaches to an existing client & server depending on the `root_dir`. require('jdtls').start_or_attach(config)
-
Foot – A fast, lightweight and minimalistic Wayland terminal emulator
I can get by with https://github.com/mfussenegger/nvim-jdtls
-
[HELP] ftplugin and lazy loading in NvChad
This and this provided no viable solutions for me
- Anyone using nvim for Kotlin development?
-
Help for configure jdtls
I tried to configure jdtls for my NeoVim I followed https://github.com/mfussenegger/nvim-jdtls install instruction. and I faced this error does anyone successfully configured jdtls ? help T ^ T
-
Adding JAR files to nvim-jdtls
Am I adding it to the wrong configuration option? Some places I see it added as a referencedLibary - https://github.com/mfussenegger/nvim-jdtls
-
Does anyone config java for neovim?
Sure. Any server that lspconfig supports will work. But for java development is better if you use nvim-jdtls. The documentation in lsp-zero has a guide on how to setup nvim-jdtls.
-
I can't seem to figure it out
Here' my java.lua for nvim-jdtls which solves the nil issue and add more features.
coc-java
-
How to configure vim like an IDE
Java
-
Problems understanding how coc-java works in terms of project/workspace
Check out the coc.java README, it uses jdt.ls under the hood and it supports gradle projects and maven projects (both of them wre Java build tools and dependency managers for big projects).
- Is it unorthodox to write java purely in Vim/CLI and not use an IDE?
-
nvim ignoring my ~/.local/share/nvim/site/pack/coc/start
Just follow the directions on the eclipse-jdt.ls and coc-java on the installation process, I have no clue about that as I don't develop in java
-
Java on Visual Studio Code Update – August 2021
A fork of the VSCode extension, coc-java is used by coc.nvim to provide Java support for Vim/NeoVim.
-
How to use lombok in neovim@nightly lsp client with server jdtls configured by nvim-lspconfig?
Looking through the internet I've found through https://github.com/neoclide/coc-java/issues/27#issuecomment-506283639 that `java.jdt.ls.vmargs` needs to be set. But that option is for `coc` and I want to use inbuilt `lsp` client.
-
Plugin recommendations for Java development?
If you're not using Neovim, then coc https://github.com/neoclide/coc.nvim is probably the best LSP implementation. https://github.com/neoclide/coc-java installs the eclipse language server for autocomplete, linting etc.
What are some alternatives?
nvim-lspconfig - Quickstart configs for Nvim LSP
eclipse.jdt.ls - Java language server
coc-java-debug - An extension for coc.nvim to enable Java debugging via jdt.ls
nvim-lsp-installer - Further development has moved to https://github.com/williamboman/mason.nvim!
Vim - :star: Vim for Visual Studio Code
java-debug - The debug server implementation for Java. It conforms to the debug protocol of Visual Studio Code (DAP, Debugger Adapter Protocol).
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
mason.nvim - Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
oni - Oni: Modern Modal Editing - powered by Neovim
vscode-neovim - Vim mode for VSCode, powered by Neovim