scalameta / metals-zed

Zed plugin for Metals
Apache License 2.0
45 stars 10 forks source link

Add `-` as word character to `string`s and opt-in to `tailwindcss-language-server` #6

Closed mrnugget closed 4 months ago

mrnugget commented 4 months ago

This fixes the problem of - not being treated as a word-character in strings when using tailwindcss-language-server with Scala. See here: https://github.com/zed-industries/zed/pull/11858#issuecomment-2114796908

mrnugget commented 4 months ago

"all" is a pretty big word :) I think this will fix the issue, yeah. @ckipp01 if you bump a release, I think @nguyenyou can try it out.

@nguyenyou what's the easiest way for me to get a new Scala project with Metals and Tailwind in it?

ckipp01 commented 4 months ago

@ckipp01 if you bump a release

uhh, are we even doing releases of this? I didn't see any, so I sort of assumed Zed was just pulling in source from this repo. @hmemcpy, did you do a release originally when you set this up, or what do I need to do in order to make this happen?

mrnugget commented 4 months ago

I think you need to bump the version here: https://github.com/scalameta/metals-zed/blob/main/extension.toml#L4

And then I need to bump the submodule: https://github.com/zed-industries/extensions/commit/c6d81b0d4b713bd6110d948332cea23fb618f532

nguyenyou commented 4 months ago

@mrnugget Sorry for the late response. You can clone this repo: https://github.com/nguyenyou/zed-metals-scala-tailwind-vite

You might need to follow the instruction here: https://github.com/scalameta/metals-zed

ckipp01 commented 4 months ago

I think you need to bump the version here: https://github.com/scalameta/metals-zed/blob/main/extension.toml#L4

Alright, should be good to go. Thanks!