zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.32k stars 2.04k forks source link

Tailwind CSS support in ~H snippets in Elixir files broken #12105

Open nesadkadric opened 1 month ago

nesadkadric commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

It looks like this was fixed before: https://github.com/zed-industries/zed/issues/6306 but now it is broken again.

TailwindCSS autocomplete does not show up in .heex components or ~H sigil snippets in Elixir files.

Environment

Zed: v0.135.2 (Zed) OS: macOS 14.5.0 Memory: 16 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

https://github.com/zed-industries/zed/assets/31567213/d0c7f8a4-1ecc-494b-be66-fc1867ea550b

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

nesadkadric commented 1 month ago

I made it to work with this line: "language_servers": ["elixir-ls", "tailwindcss-language-server"],

  "language_overrides": {
    "Elixir": {
      "language_servers": ["elixir-ls", "tailwindcss-language-server"],
      "format_on_save": {
        "external": {
          "command": "mix",
          "arguments": ["format", "--stdin-filename", "{buffer_path}", "-"]
        }
      }
    }
  },
billylaing commented 2 weeks ago

I made it to work with this line:

THANK YOU!

nesadkadric commented 1 week ago

It is broken again, and I have not changed anything except updating Zed to the preview version and updating Elixir.

Elixir 1.17.1 (compiled with Erlang/OTP 26)

Zed: v0.141.0 (Zed Preview) OS: macOS 14.5.0 Memory: 16 GiB Architecture: aarch64

Zed Settings:

"language_overrides": {
    "HEEX": {
      "tab_size": 2,
      "indent_guides": {
        "enabled": true
      }
    },
    "Elixir": {
      "language_servers": ["elixir-ls", "tailwindcss-language-server"],
      "format_on_save": {
        "external": {
          "command": "mix",
          "arguments": ["format", "--stdin-filename", "{buffer_path}", "-"]
        }
      }
    }
  },