From 784c3093aedd49c6edba835a958007a0cfd75be6 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Mon, 16 Sep 2024 12:41:33 -0400 Subject: [PATCH] Remove incorrect documentation for language-specific theme overrides (#17894) Zed does not support this, the documentation was added in error. And if it were supported, the key would be `experimental.theme_overrides` not `theme_overrides`. --- docs/src/configuring-languages.md | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/docs/src/configuring-languages.md b/docs/src/configuring-languages.md index b2c9571bd4..65e9f822b9 100644 --- a/docs/src/configuring-languages.md +++ b/docs/src/configuring-languages.md @@ -295,7 +295,9 @@ Zed offers customization options for syntax highlighting and themes, allowing yo ### Customizing Syntax Highlighting -Zed uses Tree-sitter grammars for syntax highlighting. Override the default highlighting using the `experimental.theme_overrides` setting: +Zed uses Tree-sitter grammars for syntax highlighting. Override the default highlighting using the `experimental.theme_overrides` setting. + +This example makes comments italic and changes the color of strings: ```json "experimental.theme_overrides": { @@ -310,28 +312,6 @@ Zed uses Tree-sitter grammars for syntax highlighting. Override the default high } ``` -This example makes comments italic and changes the color of strings. - -### Language-Specific Theme Overrides - -Apply theme overrides for specific languages: - -```json -"languages": { - "Python": { - "theme_overrides": { - "syntax": { - "function": { - "color": "#0000FF" - } - } - } - } -} -``` - -This configuration changes the color of function names in Python files. - ### Selecting and Customizing Themes Change your theme: