Skip to content

Jetbrains IntelliJ LSP support #1772

Open

Description

@sand4rt

I have verified that this feature request has not been made before

  • I have checked the issues tab, and did not find a similar feature request. I understand that my issue will be closed if it is a duplicate.

Feature Type

New Plugin

Feature description

Now that IntelliJ IDEA exposes its Java/Kotlin language intelligence through LSP, it would be nice to have an NVF module/configuration option for it.

This could provide an alternative to jdtls for users who want IntelliJ's Java/Kotlin language intelligence in Neovim.

Alternatives

No response

Additional Context

No response

Activity

  1. changed the title [-]Jetbrains lsp support[/-] [+]Jetbrains IntelliJ LSP support[/+] on Aug 9, 2026
  2. snoweuph commented on Aug 9, 2026

    @snoweuph
    Collaborator

    Nice, that they are opening it up. Even if its just for AI

    This could provide an alternative to jdtls

    FYI there is already an alternative: jls so it wouldn't be the first alternative

    Possible Neovim integration: https://github.com/gipo355/nvim-intellij-lsp

    We preferably don't use LSP wrapper plugins, but Neovim's standard LSP API


    The real interesting question is packaging in nixpkgs and licenses IMO

  3. snoweuph commented on Aug 9, 2026

    @snoweuph
    Collaborator

    This answers the licensing question

    Image
  4. snoweuph commented on Aug 9, 2026

    @snoweuph
    Collaborator

    As for packaging:

    Image

    we'll would need to unwrap the VSCode extensions to get the bin.
    What im more concerned about is configuring the secrets/logging into a jetbrains Account

  5. added
    TBD
    on Aug 9, 2026
  6. snoweuph commented on Aug 9, 2026

    @snoweuph
    Collaborator

    Welp, looks like the vsxi files, they provide are just glorified downloaders for the lsp and the UI for supsription handeling

  7. snoweuph commented on Aug 9, 2026

    @snoweuph
    Collaborator

    okay, good news, after the download the vsxi does you get a self contained LSP:

    Image Image
  8. snoweuph commented on Aug 9, 2026

    @snoweuph
    Collaborator

    okay, actualy communication is blocked till EULA is accepted...

    Image
  9. snoweuph commented on Aug 9, 2026

    @snoweuph
    Collaborator
    Image

    okay local testing worked:

    {lib, ...}: {
      vim.languages.java = {
        enable = true;
        treesitter.enable = true;
        lsp = {
          enable = false;
          servers = ["jls"];
        };
        dap = {
          enable = true;
          debugger = ["jls"];
        };
        extensions = {
          maven-nvim.enable = true;
          gradle-nvim.enable = true;
        };
      };
      vim.lsp.servers.intellij = let
        inherit (lib.generators) mkLuaInline;
        root = "/home/snoweuph/.local/share/JetBrains/IntelliJServer/servers/intellij-server/263.2689.0";
      in {
        enable = true;
        cmd = [
          "${root}/bin/intellij-server"
          "--stdio"
          "--data-sharing=full"
          "--region=europe"
        ];
        filetypes = ["java"];
        root_markers = [
          "pom.xml"
          "build.gradle"
          "build.gradle.kts"
          "settings.gradle"
          "settings.gradle.kts"
          ".git"
        ];
        init_options = {
          eulaHash = mkLuaInline ''
            (function()
            	local f = assert(io.open("${root}/EULA.txt", "rb"))
            	local hash = vim.fn.sha256(f:read("*a"))
            	f:close()
            	return hash:sub(1, 16)
            end)()
          '';
        };
      };
    }
  10. snoweuph commented on Aug 9, 2026

    @snoweuph
    Collaborator

    Got the LSP packaged for fun xD

    {
      lib,
      stdenv,
      fetchurl,
      gnutar,
      unzip,
      autoPatchelfHook,
      zlib,
    }: let
      inherit (lib.attrsets) attrNames;
      inherit (lib.lists) optionals;
    
      platformInfo = {
        x86_64-linux = {
          suffix = "";
          ext = "tar.gz";
          sha256 = "bf4aa474a87499cc3bf7086e64d05f9c4140f5464956fbd574adcc2d4c3e4162";
          unpack = file: out: "tar -xf ${file} --strip-components=1 -C ${out}";
        };
        aarch64-linux = {
          suffix = "-aarch64";
          ext = "tar.gz";
          sha256 = "4d22b85e26639965d18869490ad99aeacc5a55a92767a47b70aa7b2b404e293f";
          unpack = file: out: "tar -xf ${file} --strip-components=1 -C ${out}";
        };
        aarch64-darwin = {
          suffix = "-aarch64";
          ext = "sit";
          sha256 = "bde4aeb8565a854408a16d4368774f4cc401b12100f75198b90ae407f9b2dc53";
          unpack = file: out: "unzip -q ${file} -d ${out}";
        };
      };
    
      sys = platformInfo.${stdenv.hostPlatform.system};
    in
      stdenv.mkDerivation (finalAttrs: {
        pname = "intellij-server";
        version = "263.2689.0";
    
        src = fetchurl {
          url = "https://download.jetbrains.com/language-server/intellij-server/${finalAttrs.version}/intellij-server-${finalAttrs.version}${sys.suffix}.${sys.ext}";
          inherit (sys) sha256;
        };
    
        nativeBuildInputs = optionals stdenv.isLinux [gnutar autoPatchelfHook] ++ optionals stdenv.isDarwin [unzip];
    
        buildInputs =
          [zlib]
          ++ optionals stdenv.isLinux [
            stdenv.cc.cc.lib
          ];
    
        autoPatchelfIgnoreMissingDeps = true;
    
        unpackPhase = ''
          runHook preUnpack
          mkdir -p source
          ${sys.unpack "$src" "source"}
          runHook postUnpack
        '';
    
        dontConfigure = true;
        dontBuild = true;
    
        installPhase = ''
          runHook preInstall
          mkdir -p $out
          cp -r source/* $out/
          runHook postInstall
        '';
    
        meta = with lib; {
          description = "Standalone JetBrains IntelliJ IDEA language server";
          mainProgram = "intellij-server";
          homepage = "https://blog.jetbrains.com/idea/2026/08/intellij-idea-goes-lsp/";
          license = licenses.unfree;
          platforms = attrNames platformInfo;
        };
      })

    dunno if we acutally gonna ship it with NVF though, gonna have to discuss that with raf

  11. sand4rt commented on Aug 9, 2026

    @sand4rt
    ContributorAuthor

    Awesome, i hope so!

  12. snoweuph commented on Aug 9, 2026

    @snoweuph
    Collaborator

    well, if you really want, you can just take the code from the MR, and put it into your local configuration. After all, we use the NVF APIs to build modules so its all mostly just drop in to your own configuration and will work as expected

  13. snoweuph commented on Aug 9, 2026

    @snoweuph
    Collaborator
  14. sand4rt commented on Aug 9, 2026

    @sand4rt
    ContributorAuthor

    well, if you really want, you can just take the code from the MR, and put it into your local configuration. After all, we use the NVF APIs to build modules so its all mostly just drop in to your own configuration and will work as expected

    yeah that is what im doing atm

    Feel free to add a thumb up to https://blog.jetbrains.com/idea/2026/08/intellij-idea-goes-lsp/#remark42__comment-037484e5-9ed6-4264-8f0d-711fa9fc812e if you got a jetbrains ACC I hope to get a few questions answered by them.

    done

  15. snoweuph commented on Aug 10, 2026

    @snoweuph
    Collaborator
    Image

    raf is fine with packaging it :3

  16. snoweuph commented on Oct 21, 2026

    @snoweuph
    Collaborator

    As JetBrains is not really providing active changelogs, or standard APIs for debugging, and the whole thing is seen by them as experimental, in combination of me not really actively writing java, I won't put further time onto the PR. Generally it should be seen as a proof of concept only.
    But with all the shit that needs to be manually maintained, I don't see it currently as feasible to upstream it into nvf.

    In case an upstream nixpkg is made, and maintained there; or JetBrains becoming more standard with their packaging and at least providing some kind of changelog, It might be feasible.

    But the current state is, needing to manually unwrap vscode extensions to even get the latest download URLs, because they aren't even published anywhere else. And then combine that with the stupid DAP, embedded inside the LSP, instead of providing a standard socket, requiring custom translators, it is just to much bullcrap.

  17. removed
    TBD
    on Oct 21, 2026
  18. sand4rt commented on Oct 25, 2026

    @sand4rt
    ContributorAuthor

    with all the shit that needs to be manually maintained, I don't see it currently as feasible to upstream it into nvf.

    JetBrains has recently been working on https://github.com/JetBrains/intellij-lsp.nvim

    Might be easier to use that directly instead of writing and maintaining a custom integration from scratch in this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementtopic: packaging

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions