bajrangCoder / zed-laravel-blade

Larvel Blade templating language support for Zed
8 stars 0 forks source link

File Association #2

Open jaytuckwell opened 3 months ago

jaytuckwell commented 3 months ago

Hi,

How do I set the file association for blade.php?

Zed seems to ignore the following:

"file_types": {
    "Blade": ["blade", "blade.php"]
}
bajrangCoder commented 3 months ago

Try like this :

"file_types": {
    "Blade": ["blade", "*.blade.php"]
}
ZayRTun commented 2 months ago

Hi,

Thanks for bringing blade support to zed.

If I add the following it works, but the problem is, emmet is not working anymore. Emmet seems to work in php but if I add the below file_types, it stops.

Is there a way I can add blade to emmet file types?

"file_types": {
    "Blade": ["blade", "*.blade.php"]
}

Please advise...

bajrangCoder commented 2 months ago

you can enable the php language server , emmets , etc from settings with language_servers field for blade

ZayRTun commented 2 months ago

I tried the following, but it's not working. Am I doing it wrong?

    "languages": {
        "PHP": {
            "language_servers": [
                "intelephense",
                "!phpactor",
            ]
        },
        "Blade": {
            "language_servers": [
                "emmet"
            ]
        }
    },
bajrangCoder commented 2 months ago

Try like this :

{
  "languages": {
     "Blade": {
        "language_servers": ["emmet", "..."] # or use emmet-language-server instead of emmet
      }
  }
}
ZayRTun commented 2 months ago

I tried your suggestions, but it's not working. Maybe there is something wrong at my end.

bajrangCoder commented 2 months ago

No, it seems problem is in Emmet extension.