You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `feature.semanticTokens.typeMap` | `array` of `table` | `[]` |
188
+
| `feature.semanticTokens.modifierMap` | `array` of `table` | `[]` |
189
+
190
+
Maps the customized semantic symbol kinds or modifier to LSP semantic token types or modifiers.
191
+
192
+
Example:
193
+
194
+
```toml
195
+
[feature.semanticTokens]
196
+
typeMap = [
197
+
{"from": "header", "to": "string"},
198
+
{"from": "attribute", "to": "decorator"},
199
+
]
200
+
201
+
modifierMap = [
202
+
{"from": "const", "to": "readonly"},
203
+
{"from": "pureVirtual", "to": "abstract"},
204
+
]
205
+
```
206
+
207
+
For all clice symbol kinds, please refer to [SymbolKind](https://github.com/clice-project/clice/blob/main/include/AST/SymbolKind.h). The first letter of the name should be translated to lowercase. For all LSP semantic token types, refer to [SemanticTokenKind](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_semanticTokens).
0 commit comments