bajrangCoder / zed-laravel-blade

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

Having trouble with emmet #7

Open end3r-man opened 1 month ago

end3r-man commented 1 month ago

hi guys,

recently i switched to zed from vscode, having trouble with emmet its working on plain html but not in blade.php

// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette
{
  "features": {
    "inline_completion_provider": "none"
  },
  "assistant": {
    "default_model": {
      "provider": "openai",
      "model": "o1-mini"
    },
    "version": "2"
  },
  "ui_font_size": 14,
  "buffer_font_size": 14,
  "autosave": {
    "after_delay": {
      "milliseconds": 500
    }
  },
  "vim_mode": false,
  "theme": {
    "mode": "system",
    "light": "One Dark",
    "dark": "One Dark"
  },
  "inlay_hints": {
    "enabled": true,
    "show_type_hints": true,
    "show_parameter_hints": true,
    "show_other_hints": true
  },
  "languages": {
    "PHP": {
      "language_servers": ["intelephense", "!phpactor"]
    },
    "Blade": {
      "language_servers": ["emmet"]
    }
  },
  "lsp": {
    "tailwindcss-language-server": {
      "settings": {
        "includeLanguages": {
          "blade": "HTML"
        }
      }
    },
    "emmet": {
      "settings": {
        "includeLanguages": {
          "blade": "HTML"
        }
      }
    }
  },
  "file_types": {
    "blade": ["*.blade.php"]
  }
}
end3r-man commented 1 month ago

can any one help me to fix the syntax highlight issue

bajrangCoder commented 1 month ago

Currently Emmet only works in mentioned language mode , Emmet extension.toml

To make it work in blade , you will need to clone the Emmet extension repo and add blade language to extension.toml language field