Enable semantic tokens for scala
This commit is contained in:
parent
ec8467cdd4
commit
84b6e95316
|
@ -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 = [
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"; }
|
||||||
|
|
Loading…
Reference in a new issue