vim-language-server VS eclipse.jdt.ls

Compare vim-language-server vs eclipse.jdt.ls and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
vim-language-server eclipse.jdt.ls
6 30
485 1,642
- 2.9%
2.1 9.4
10 months ago 5 days ago
JavaScript Java
- Eclipse Public License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

vim-language-server

Posts with mentions or reviews of vim-language-server. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-28.

eclipse.jdt.ls

Posts with mentions or reviews of eclipse.jdt.ls. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-08.
  • How to use nvim-jdtls for Java and nvim-lspconfig for everything else?
    2 projects | /r/neovim | 8 Apr 2023
    I installed eclipse jdtls which worked for Java, but I was not able to go to definitions for methods/classes outside of my project (ie, libraries and such, something like in IntelliJ where you can go to the definition or implementation for the library code), so I thought it may be a limitation of nvim-lspconfig
  • Where does the dislike/hate for Java come from?
    4 projects | /r/java | 31 Jan 2023
    Try neovim. Builtin support for language servers which provide the basis for IDE functionality, autocomplete, auto import, code actions, refactoring, etc. I believe VSCode uses jdtls on the backend and you can use the same thing with neovim.
  • java 19 in latest eclipse IDE
    3 projects | /r/java | 7 Dec 2022
    Is seems like valid manual to start language server here https://github.com/eclipse/eclipse.jdt.ls. Not sure what you mean by "starting it with other editors" though. It should be covered by editor own integration with the given LS.
  • Is VIM a trap?
    3 projects | /r/cscareerquestions | 10 Oct 2022
  • Picnic loves Error Prone: producing high-quality and consistent Java code
    2 projects | /r/java | 6 Oct 2022
    Just the other day I tested VS Code Java again and apparently the Red Hat team that did the Java language support has gotten some level of null analysis turned on now. Thus I assume the Eclipse LSP https://github.com/eclipse/eclipse.jdt.ls has that support now.
  • Help setting up jdtls for java
    6 projects | /r/neovim | 2 Oct 2022
    -- 💀 "/usr/lib/jvm/java-11-openjdk/", -- or '/path/to/java11_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", "-javaagent:" .. home .. "/.local/share/nvim/mason/packages/jdtls/lombok.jar", "-Xms1g", "--add-modules=ALL-SYSTEM", "--add-opens", "java.base/java.util=ALL-UNNAMED", "--add-opens", "java.base/java.lang=ALL-UNNAMED", -- 💀 "-jar", vim.fn.glob( home .. "/.local/share/nvim/mason/packages/jdtls/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar" ), -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ -- Must point to the Change this to -- eclipse.jdt.ls installation the actual version -- 💀 "-configuration", home .. "/.local/share/nvim/mason/packages/jdtls/config_" .. CONFIG, -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ -- 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", workspace_dir, }, on_attach = { require("jdtls").setup_dap({ hotcodereplace = "auto" }), require("jdtls.dap").setup_dap_main_class_configs(), }, capabilities = capabilities, -- 💀 -- 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 = root_dir, -- 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 -- or https://github.com/redhat-developer/vscode-java#supported-vs-code-settings -- for a list of options settings = { java = { eclipse = { downloadSources = true, }, configuration = { updateBuildConfiguration = "interactive", }, maven = { downloadSources = true, }, implementationsCodeLens = { enabled = true, }, referencesCodeLens = { enabled = true, }, references = { includeDecompiledSources = true, }, inlayHints = { parameterNames = { enabled = "all", -- literals, all, none }, }, format = { enabled = false, }, }, signatureHelp = { enabled = true }, completion = { favoriteStaticMembers = { "org.hamcrest.MatcherAssert.assertThat", "org.hamcrest.Matchers.*", "org.hamcrest.CoreMatchers.*", "org.junit.jupiter.api.Assertions.*", "java.util.Objects.requireNonNull", "java.util.Objects.requireNonNullElse", "org.mockito.Mockito.*", }, }, contentProvider = { preferred = "fernflower" }, extendedClientCapabilities = extendedClientCapabilities, sources = { organizeImports = { starThreshold = 9999, staticStarThreshold = 9999, }, }, codeGeneration = { toString = { template = "${object.className}{${member.name()}=${member.value}, ${otherMembers}}", }, useBlocks = true, }, }, flags = { allow_incremental_sync = true, }, -- 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
  • How to actually get a language server working?
    2 projects | /r/HelixEditor | 30 Sep 2022
    The helix wiki on how to install jdtls just refers to the eclipse installation guide where it only says where to download it from and how to run the server in a terminal.
  • Plugins and Settings for Java programming?
    9 projects | /r/vim | 25 Aug 2022
    Vim, on the other hand, needs some set up. I use vim-lsp and vim-lsp-settings to get the Eclipse JDT Language Server. There are some initialization options for it listed in the wiki or in its Preferences.java. For setting up your Formatting, Analysis, Inspection options, I would suggest using Eclipse. It will save those settings in files under, e.g.
  • Detect when a language server is usable?
    5 projects | /r/neovim | 31 Jul 2022
    jdtls uses it's own progress handler language/progressReport. an upstream PR to add $/progress support is pending. Alternatively a shim language/progressReport handler can be written to divert it back to $/progress
  • Unable to use nvim-jdtls
    3 projects | /r/neovim | 18 Mar 2022
    ````` local nvim_jdtls_status_ok, nvim_jdtls = pcall(require, "jdtls") if not nvim_jdtls_status_ok then return end local project_name = vim.fn.fnamemodify(vim.fn.getcwd(), ':p:h:t') local workspace_dir = '~/workspaces/' .. project_name -- local capabilities = vim.lsp.protocol.make_client_capabilities() -- capabilities = require('cmp_nvim_lsp').update_capabilities() local config = { -- See: https://github.com/eclipse/eclipse.jdt.ls#running-from-the-command-line cmd = { -- Instead of manually configuring i used the script from bin 'python3.9', '/path-to-home/.local/share/nvim/lsp_servers/jdtls/bin/init.py', '-data', workspace_dir }, -- One dedicated LSP server & client will be started per unique root_dir found root_dir = require('jdtls.setup').find_root({ '.git', 'mvnw', 'gradlew', 'pom.xml', '.gitignore', '.gitattributes' }), -- See https://github.com/eclipse/eclipse.jdt.ls/wiki/running-the-java-ls-server-from-the-command-line#initialize-request settings = { java = { referenceCodeLens = { enabled = true }, format = { enabled = true, insertSpaces = true }, codeGeneration = { tostring = { listArrayContents = true, skipNullValues = true }, useBlocks = true, hashCodeEquals = { useInstanceof = true, useJava7Objects = true }, generateComments = true, insertLocation = true }, maven = { downloadSources = true, updateSnapshots = true } } }, init_options = { bundles = {} } } local opts = { noremap = true, silent = true } vim.api.nvim_set_keymap("n", "gr", "lua vim.lsp.buf.references()", opts) vim.api.nvim_set_keymap("n", "gD", "lua vim.lsp.buf.declaration()", opts) vim.api.nvim_set_keymap("n", "gd", "lua vim.lsp.buf.definition()", opts) vim.api.nvim_set_keymap("n", "gk", "lua vim.lsp.buf.hover()", opts) vim.api.nvim_set_keymap("n", "gK", "lua vim.lsp.buf.signature_help()", opts) vim.api.nvim_set_keymap("n", "gi", "lua vim.lsp.buf.implementation()", opts) vim.api.nvim_set_keymap("n", "cr", "lua vim.lsp.buf.references()", opts) vim.api.nvim_set_keymap("n", "cd", "lua vim.lsp.buf.definition()", opts) vim.api.nvim_set_keymap("n", "cD", "lua vim.lsp.buf.declaration()", opts) vim.api.nvim_set_keymap("n", "cr", "lua vim.lsp.buf.references()", opts) vim.api.nvim_set_keymap("n", "ci", "lua vim.lsp.buf.implementation()", opts) vim.api.nvim_set_keymap("n", "ca", "lua vim.lsp.buf.code_action()", opts) vim.api.nvim_set_keymap("n", "cx", "lua vim.diagnostic.open_float()", opts) vim.api.nvim_set_keymap("n", "[d", 'lua vim.diagnostic.goto_prev({ border = "rounded" })', opts) vim.api.nvim_set_keymap( "n", "gl", 'lua vim.lsp.diagnostic.show_line_diagnostics({ border = "rounded" })', opts) vim.api.nvim_set_keymap("n", "]d", 'lua vim.diagnostic.goto_next({ border = "rounded" })', opts) vim.api.nvim_set_keymap("n", "q", "lua vim.diagnostic.setloclist()", opts) nvim_jdtls.start_or_attach(config)

What are some alternatives?

When comparing vim-language-server and eclipse.jdt.ls you can also consider the following projects:

coc-tailwind-intellisense - Coc.nvim extension for Tailwind CSS IntelliSense

nvim-jdtls - Extensions for the built-in LSP support in Neovim for eclipse.jdt.ls

coc-java - Java extension for coc.nvim

coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.

IntelliJIDEA-Delightful - A charming and dazzling IntelliJ IDEA configuration!

NeoVim-Delightful - A charming and dazzling NeoVim configuration!

vscode-java - Java Language Support for Visual Studio Code

language-server-protocol - Defines a common protocol for language servers.

omnisharp-vim - Vim omnicompletion (intellisense) and more for C#

LSP - Client implementation of the Language Server Protocol for Sublime Text

EmmyLua-LanguageServer

fidget.nvim - 💫 Extensible UI for Neovim notifications and LSP progress messages.