Typescript changes

- Added c#, but partially works
This commit is contained in:
Barna Máté 2024-12-19 22:42:28 +01:00
parent 06cc32d7e3
commit 95de8b2780

View file

@ -9,6 +9,7 @@ local colors = {
crayola = "#FF628C", crayola = "#FF628C",
amethyst = "#b362ff", amethyst = "#b362ff",
white = "#FFFFFF", white = "#FFFFFF",
sgbus_green = "#3AD900",
cyan = "#9EFFFF", cyan = "#9EFFFF",
space_cadet = "#191830", space_cadet = "#191830",
aquamarine = "#80FFBB", aquamarine = "#80FFBB",
@ -66,20 +67,34 @@ local theme = lush(function(injected_functions)
-- Typescript, tsx -- Typescript, tsx
typescriptImport({ fg = colors.orange_peel }), typescriptImport({ fg = colors.orange_peel }),
typescriptIdentifierName({ fg = colors.cyan }), typescriptIdentifierName({ fg = colors.cyan }),
typescriptIdentifier({ fg = colors.violet }),
--typescriptObjectLiteral({ fg = colors.crayola }),
typescriptVariableName({ fg = colors.orange_peel }), typescriptVariableName({ fg = colors.orange_peel }),
typescriptVariable({ fg = colors.orange_peel }), typescriptVariable({ fg = colors.orange_peel }),
typescriptStatementKeyword({ fg = colors.orange_peel }), typescriptStatementKeyword({ fg = colors.orange_peel }),
typescriptPromiseMethod({ fg = colors.gold }), typescriptPromiseMethod({ fg = colors.gold }),
typescriptFuncCallArg({ fg = colors.gold }), -- typescriptFuncCallArg({ fg = colors.gold, bg = colros.orange_peel}),
typescriptBlock({ fg = colors.gold }), typescriptBlock({ fg = colors.cyan }),
typescriptFuncArg({ fg = colors.gold }), typescriptFuncArg({ fg = colors.gold }),
typescriptPredefinedType({ fg = colors.aquamarine }), typescriptPredefinedType({ fg = colors.aquamarine }),
typescriptConstructorType({ fg = colors.orange_peel }),
typescriptTypeReference({ fg = colors.gold }),
sym("@lsp.type.interface.typescriptreact")({ fg = colors.cyan }), sym("@lsp.type.interface.typescriptreact")({ fg = colors.cyan }),
sym("@lsp.type.parameter.typescriptreact")({ fg = colors.cyan }), sym("@lsp.type.parameter.typescriptreact")({ fg = colors.cyan }),
sym("@lsp.type.namespace.typescriptreact")({ fg = colors.cyan }), sym("@lsp.type.namespace.typescriptreact")({ fg = colors.cyan }),
sym("@lsp.type.member.typescript")({ fg = colors.gold }),
sym("@lsp.type.property.typescriptreact")({ fg = colors.cyan }), sym("@lsp.type.property.typescriptreact")({ fg = colors.cyan }),
sym("@lsp.type.property.typescript")({ fg = colors.cyan }),
typescriptTemplateSB({ fg = colors.maize }), typescriptTemplateSB({ fg = colors.maize }),
typescriptTemplate({ fg = colors.sgbus_green }),
typescriptOptionalMark({ fg = colors.orange_peel }),
typescriptObjectLabel({ fg = colors.orange_peel }),
typescriptObjectLiteral({ fg = colors.cyan }),
typescriptReturnAnnotation({ fg = colors.cyan }),
typescriptParamImpl({ fg = colors.lightgreen }),
typescriptDOMFormProp({ fg = colors.gold }),
tsxTagName({ fg = colors.cyan }), tsxTagName({ fg = colors.cyan }),
-- TODO color variables inside HTML tags to cyan. Like onInputChange = {variable} -- TODO color variables inside HTML tags to cyan. Like onInputChange = {variable}
-- Html -- Html
@ -110,6 +125,16 @@ local theme = lush(function(injected_functions)
-- Javascript -- Javascript
-- TODO finish -- TODO finish
sym("@lsp.type.property.javascript")({ fg = colors.gold }), sym("@lsp.type.property.javascript")({ fg = colors.gold }),
-- C#
-- TODO in function parameters they should be gold rather than orange
csStorage({ fg = colors.orange_peel }),
csClass({ fg = colors.orange_peel }),
csType({ fg = colors.gold }),
sym("@lsp.typemod.class.static.cs")({ fg = colors.white }),
sym("@lsp.type.property.cs")({ fg = colors.orange_peel }),
csAccess({ fg = colors.violet }), -- TODO doesn't apply due to @lsp.type.keyword.cs overwriting it.
--sym("@lsp.type.keyword.cs")({ fg = colors.gold }),
} }
end) end)