From c6a8566a2879e729849c420760a773a6372a2c22 Mon Sep 17 00:00:00 2001 From: Yingchi Long Date: Fri, 15 Nov 2024 09:51:50 +0800 Subject: [PATCH] nixd/docs/features: update the docs for semantic tokens change --- nixd/docs/features.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixd/docs/features.md b/nixd/docs/features.md index eeeab4985..7e87e00f3 100644 --- a/nixd/docs/features.md +++ b/nixd/docs/features.md @@ -32,13 +32,16 @@ Screenshots: ### Semantic Tokens +> [!WARNING] +> This feature is experimental and not enabled by default. + [nixd language server](https://github.com/nix-community/nixd) tries to make some tokens looks different by sending your editor some integers. However, types in nix language is pretty different from standard LSP types. So, as a result, attrnames, selection, variables are colored as different integers, but the colors may, or may not rendered properly in your editor. > [!TIP] -> `--semantic-tokens=false` to disable the feature. +> `--semantic-tokens=true` to enable the feature. #### Attribute name coloring