nvim: colors/yolokai: Add semantic highlight groups

For more information, see
https://www.reddit.com/r/neovim/comments/12gvms4/this_is_why_your_higlights_look_different_in_90/
https://github.com/Iron-E/nvim-highlite/blob/master-v3/colors/highlite.lua

Changes are taken from the above two sources.
This commit is contained in:
Sanchayan Maity 2023-04-10 17:49:57 +05:30
parent ceae4a0795
commit 4c409188be
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -213,6 +213,31 @@ local highlight_groups = {
LspReferenceRead = 'InfoMsg',
LspReferenceWrite = 'InfoMsg',
--[[ 4.2.15. LSP (for Semantic Token highlighting) ]]
['@lsp.type.boolean'] = '@boolean' ,
['@lsp.type.character'] = '@character' ,
['@lsp.type.class'] = '@type' ,
['@lsp.mod.constant'] = '@constant' ,
['@lsp.type.decorator'] = '@function' ,
['@lsp.type.enum'] = '@type' ,
['@lsp.type.enumMember'] = '@constant' ,
['@lsp.type.float'] = '@float' ,
['@lsp.type.function'] = '@function' ,
['@lsp.type.interface'] = '@type' ,
['@lsp.type.macro'] = '@macro' ,
['@lsp.type.method'] = '@method' ,
['@lsp.type.namespace'] = '@namespace' ,
['@lsp.type.number'] = '@number' ,
['@lsp.type.operator'] = '@operator' ,
['@lsp.type.parameter'] = '@parameter' ,
['@lsp.type.property'] = '@property' ,
['@lsp.mod.readonly'] = '@lsp.mod.constant',
['@lsp.type.string'] = '@string' ,
['@lsp.type.struct'] = '@structure' ,
['@lsp.type.type'] = '@type' ,
['@lsp.type.variable'] = '@variable' ,
['@lsp.typemod.type.readonly'] = '@lsp.type.type' ,
--[[ 4.3. Programming Languages
Everything in this section is OPTIONAL. Feel free to remove everything
here if you don't want to define it, or add more if there's something