Skip to content

Plugin for Zed #5373

Open
Open

Description

@MrHaroldA

Zed is gaining popularity and I was quite surprised that none of the IDE plugins is able to generate something Zed can parse to get all include paths and symbol navigation correct.

I'm a total amateur messing around with a little C for some ESP and Arduino projects, so I have no clue how to get Zed up-and-running with my PlatformIO projects.

If I can generate the needed files by hand that would be no problem either, but a plugin would be most welcome!

Activity

  1. highjeans commented on Feb 18, 2026

    @highjeans

    Technically you can use compiledb along with clangd (which i believe zed has support for) and it should just work as well, although you would have to use the pio cli instead of having a "PlatformIO IDE"-like experience.

  2. MrHaroldA commented on Feb 24, 2026

    @MrHaroldA
    Author

    A platformio run -t compiledb (and a restart of Zed) does indeed fix the symbol navigation!

    Is this something that should be added to Platformio's documentation?

  3. JamBalaya56562 commented on Jul 5, 2026

    @JamBalaya56562

    Hi @MrHaroldA, thank you for digging into this and for confirming what works — that's genuinely helpful for anyone who lands on this issue!

    To add the underlying reason it "just works": Zed relies on clangd for C/C++, and clangd reads a compile_commands.json to resolve includes and symbols. PlatformIO can generate exactly that file with pio run -t compiledb (documented here: https://docs.platformio.org/en/latest/integration/compile_commands.html), which is why a regenerate-and-reload gives you full navigation, as you and @highjeans found. Dedicated editor/IDE integrations are maintained as separate projects outside platformio-core, so a built-in Zed plugin isn't something that would live in Core itself.

    Your suggestion to mention the compiledb workflow in the docs is a good one and would make a nice, focused addition. Since the practical path is already covered, I think this can be closed — but thank you very much for raising it and helping map out the Zed story!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions