Skip to content

Conversation

@croustibat
Copy link

Summary

Adds comprehensive Laravel support for Zed Editor.

Features

  • Blade Template Support

    • Syntax highlighting via tree-sitter-blade
    • Go to Definition for @include/@extends directives
    • Autocomplete for view paths
  • PHP Development

    • Syntax highlighting via tree-sitter-php
    • Laravel Language Server integration (auto-downloaded)
    • Intelephense integration for PHP IntelliSense
  • Code Snippets (120+)

    • Blade templates (40+): @if, @foreach, @extends, etc.
    • PHP Laravel (50+): routes, controllers, models, migrations
    • Livewire 3 (30+): components, wire directives, forms
  • Laravel Pint formatting support

Repository

https://github.com/croustibat/zed-laravel

Testing

  • Tested on macOS with Zed v0.164+
  • All features working: syntax highlighting, snippets, go to definition, language servers

Checklist

  • Extension builds successfully
  • README with installation and usage instructions
  • MIT License
  • Version 0.2.1 in extension.toml

Adds comprehensive Laravel support for Zed including:
- Blade template syntax highlighting (tree-sitter-blade)
- Go to Definition for @include/@extends directives
- PHP syntax support (tree-sitter-php)
- Laravel Language Server integration
- Intelephense integration
- 120+ code snippets (Blade, PHP Laravel, Livewire 3)
- Laravel Pint formatting support

Repository: https://github.com/croustibat/zed-laravel
@cla-bot
Copy link

cla-bot bot commented Jan 6, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @croustibat on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@croustibat
Copy link
Author

@cla-bot check

@cla-bot
Copy link

cla-bot bot commented Jan 6, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @croustibat on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link

cla-bot bot commented Jan 6, 2026

The cla-bot has been summoned, and re-checked this pull request!

Copy link
Member

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

Aside fromt the CLA issue, a few questions:

  • Could you elaborate how this differs for the highlighting part from https://github.com/bajrangCoder/zed-laravel-blade? It seems that this already adds support for both highlighting as well as some LSPs.
  • I see that this adds the laravel language server. Would that perhaps be something that we could add to the other extension too instead?

Thanks!

@croustibat
Copy link
Author

@cla-bot check

@cla-bot
Copy link

cla-bot bot commented Jan 7, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @croustibat on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link

cla-bot bot commented Jan 7, 2026

The cla-bot has been summoned, and re-checked this pull request!

@croustibat
Copy link
Author

Thanks for the review!

You're right that zed-laravel-blade already covers Blade highlighting with the same tree-sitter grammars.
The key additions in this extension are:

  1. Laravel Language Server (laravel-ls) - provides Laravel-specific features like Go to Definition for @include/@extends directives, route navigation, config lookups, etc.
  2. 120+ built-in snippets for Blade, Laravel PHP, and Livewire 3

I'm happy to contribute the Laravel LS integration to the existing zed-laravel-blade extension instead if that's preferred.

That would avoid duplication of the grammar/highlighting parts.

Should I:

  • Open a PR on bajrangCoder/zed-laravel-blade to add Laravel LS support?
  • Keep this as a separate extension focused on the broader "Laravel ecosystem" (LS + snippets)?

Let me know what makes more sense for the Zed extension ecosystem!

@MrSubidubi
Copy link
Member

Thanks for the reply!

I'd love if you could open a PR against bajrangCoder/zed-laravel-blade for the language server and we can decide how to proceed here depending on how that goes.

As for the snippets, they could in theory also go in that extension, however, we can also publish these as a separete extension, whatever you and/or the upstream maintainer prefer.

At the end, though, happy to go with whatever you'd like (aside from preventing the duplication of language definitions to happen).

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants