mirror of
https://github.com/fredrikr79/nixos.git
synced 2026-01-02 05:23:46 +01:00
fix semantic tokening with uiua
This commit is contained in:
58
home.nix
58
home.nix
@@ -126,6 +126,17 @@ in
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
|
||||
autoCmd = [
|
||||
{
|
||||
event = [
|
||||
"BufRead"
|
||||
"BufNewFile"
|
||||
];
|
||||
pattern = [ "*.ua" ];
|
||||
command = "setfiletype uiua";
|
||||
}
|
||||
];
|
||||
|
||||
keymaps = [
|
||||
# { # managed by easyescape plugin
|
||||
# key = "jk";
|
||||
@@ -378,6 +389,53 @@ in
|
||||
textDocument = {
|
||||
semanticTokens = {
|
||||
multilineTokenSupport = true;
|
||||
overlappingTokenSupport = false;
|
||||
serverCancelSupport = true;
|
||||
augmentsSyntaxTokens = true;
|
||||
formats = [ "relative" ];
|
||||
requests = {
|
||||
range = true;
|
||||
full = {
|
||||
delta = true;
|
||||
};
|
||||
};
|
||||
tokenTypes = [
|
||||
"namespace"
|
||||
"type"
|
||||
"class"
|
||||
"enum"
|
||||
"interface"
|
||||
"struct"
|
||||
"typeParameter"
|
||||
"parameter"
|
||||
"variable"
|
||||
"property"
|
||||
"enumMember"
|
||||
"event"
|
||||
"function"
|
||||
"method"
|
||||
"macro"
|
||||
"keyword"
|
||||
"modifier"
|
||||
"comment"
|
||||
"string"
|
||||
"number"
|
||||
"regexp"
|
||||
"operator"
|
||||
"decorator"
|
||||
];
|
||||
tokenModifiers = [
|
||||
"declaration"
|
||||
"definition"
|
||||
"readonly"
|
||||
"static"
|
||||
"deprecated"
|
||||
"abstract"
|
||||
"async"
|
||||
"modification"
|
||||
"documentation"
|
||||
"defaultLibrary"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user