From 08f209cd5a402b7be8570bf17340819283114dff Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Thu, 16 May 2024 13:25:43 +0200 Subject: [PATCH] Add `-` as word character to `string`s and opt-in to tailwindcss-language-server 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 --- languages/scala/config.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/languages/scala/config.toml b/languages/scala/config.toml index b2ea5f8..9833d2f 100644 --- a/languages/scala/config.toml +++ b/languages/scala/config.toml @@ -12,4 +12,8 @@ brackets = [ { start = "`", end = "`", close = true, newline = false, not_in = ["comment", "string"] }, { start = "/*", end = " */", close = true, newline = false, not_in = ["comment", "string"] } ] -collapsed_placeholder = " /* ... */ " \ No newline at end of file +collapsed_placeholder = " /* ... */ " + +[overrides.string] +word_characters = ["-"] +opt_into_language_servers = ["tailwindcss-language-server"]