Skip to content

Commit

Permalink
nixd/docs/features: update the docs for semantic tokens change
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Nov 15, 2024
1 parent 6474c1b commit c6a8566
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixd/docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c6a8566

Please sign in to comment.