Enable semantic tokens for scala

This commit is contained in:
Natsu Kagami 2023-10-10 13:53:39 +02:00
parent ec8467cdd4
commit 84b6e95316
Signed by: nki
GPG key ID: 55A032EB38B49ADB
3 changed files with 6 additions and 6 deletions

View file

@ -231,10 +231,10 @@ in
InfoDiagnosticInformation = "@Information"; InfoDiagnosticInformation = "@Information";
InfoDiagnosticWarning = "@DiagnosticWarning"; InfoDiagnosticWarning = "@DiagnosticWarning";
# Extra faces # Extra faces
macro = "+b@function"; macro = "+u@function";
method = "+i@function"; method = "@function";
format_specifier = "+i@string"; format_specifier = "+i@string";
mutable_variable = "+u@variable"; mutable_variable = "+i@variable";
class = "+b@variable"; class = "+b@variable";
}; };
programs.my-kakoune.autoload = [ programs.my-kakoune.autoload = [

View file

@ -114,7 +114,7 @@ hook global WinSetOption filetype=(rust|scala|fsharp) %{
lsp-inlay-hints-enable window lsp-inlay-hints-enable window
} }
hook global WinSetOption filetype=(rust|go|fsharp|typst) %{ hook global WinSetOption filetype=(rust|go|fsharp|typst|scala) %{
hook window -group semantic-tokens BufReload .* lsp-semantic-tokens hook window -group semantic-tokens BufReload .* lsp-semantic-tokens
hook window -group semantic-tokens NormalIdle .* lsp-semantic-tokens hook window -group semantic-tokens NormalIdle .* lsp-semantic-tokens
hook window -group semantic-tokens InsertIdle .* lsp-semantic-tokens hook window -group semantic-tokens InsertIdle .* lsp-semantic-tokens

View file

@ -169,8 +169,8 @@ let
{ face = "string"; token = "string"; } { face = "string"; token = "string"; }
{ face = "format_specifier"; token = "formatSpecifier"; } { face = "format_specifier"; token = "formatSpecifier"; }
# Variables # Variables
{ face = "mutable_variable"; token = "variable"; modifiers = [ "mutable" ]; } { face = "variable"; token = "variable"; modifiers = [ "readonly" ]; }
{ face = "variable"; token = "variable"; } { face = "mutable_variable"; token = "variable"; }
{ face = "module"; token = "namespace"; } { face = "module"; token = "namespace"; }
{ face = "variable"; token = "type_parameter"; } { face = "variable"; token = "type_parameter"; }
{ face = "class"; token = "enum"; } { face = "class"; token = "enum"; }