aboutsummaryrefslogtreecommitdiff
path: root/runtime/colors/vim.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2024-01-25 13:28:26 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-01-25 18:19:15 +0100
commit3ab6f60dc80d36f968102ba14b7c4ec96efeb56d (patch)
treeee46355e5501ea4a17def679171e3b1b29349f95 /runtime/colors/vim.lua
parente8aec1ecc5ae462c58957e192d4aedc0c54871a6 (diff)
downloadrneovim-3ab6f60dc80d36f968102ba14b7c4ec96efeb56d.tar.gz
rneovim-3ab6f60dc80d36f968102ba14b7c4ec96efeb56d.tar.bz2
rneovim-3ab6f60dc80d36f968102ba14b7c4ec96efeb56d.zip
fix(runtime): update 'vim' color scheme to use new tree-sitter groups
Diffstat (limited to 'runtime/colors/vim.lua')
-rw-r--r--runtime/colors/vim.lua63
1 files changed, 31 insertions, 32 deletions
diff --git a/runtime/colors/vim.lua b/runtime/colors/vim.lua
index 4e16b6e036..67f9ddd643 100644
--- a/runtime/colors/vim.lua
+++ b/runtime/colors/vim.lua
@@ -132,12 +132,12 @@ hi('LspInlayHint', { link = 'NonText' })
hi('SnippetTabstop', { link = 'Visual' })
-- Text
-hi('@text.literal', { link = 'Comment' })
-hi('@text.reference', { link = 'Identifier' })
-hi('@text.title', { link = 'Title' })
-hi('@text.uri', { link = 'Underlined' })
-hi('@text.underline', { link = 'Underlined' })
-hi('@text.todo', { link = 'Todo' })
+hi('@markup.raw', { link = 'Comment' })
+hi('@markup.link', { link = 'Identifier' })
+hi('@markup.heading', { link = 'Title' })
+hi('@markup.link.url', { link = 'Underlined' })
+hi('@markup.underline', { link = 'Underlined' })
+hi('@comment.todo', { link = 'Todo' })
-- Miscs
hi('@comment', { link = 'Comment' })
@@ -147,8 +147,7 @@ hi('@punctuation', { link = 'Delimiter' })
hi('@constant', { link = 'Constant' })
hi('@constant.builtin', { link = 'Special' })
hi('@constant.macro', { link = 'Define' })
-hi('@define', { link = 'Define' })
-hi('@macro', { link = 'Macro' })
+hi('@keyword.directive', { link = 'Define' })
hi('@string', { link = 'String' })
hi('@string.escape', { link = 'SpecialChar' })
hi('@string.special', { link = 'SpecialChar' })
@@ -156,35 +155,35 @@ hi('@character', { link = 'Character' })
hi('@character.special', { link = 'SpecialChar' })
hi('@number', { link = 'Number' })
hi('@boolean', { link = 'Boolean' })
-hi('@float', { link = 'Float' })
+hi('@number.float', { link = 'Float' })
-- Functions
-hi('@function', { link = 'Function' })
-hi('@function.builtin', { link = 'Special' })
-hi('@function.macro', { link = 'Macro' })
-hi('@parameter', { link = 'Identifier' })
-hi('@method', { link = 'Function' })
-hi('@field', { link = 'Identifier' })
-hi('@property', { link = 'Identifier' })
-hi('@constructor', { link = 'Special' })
+hi('@function', { link = 'Function' })
+hi('@function.builtin', { link = 'Special' })
+hi('@function.macro', { link = 'Macro' })
+hi('@variable.parameter', { link = 'Identifier' })
+hi('@function.method', { link = 'Function' })
+hi('@variable.member', { link = 'Identifier' })
+hi('@property', { link = 'Identifier' })
+hi('@constructor', { link = 'Special' })
-- Keywords
-hi('@conditional', { link = 'Conditional' })
-hi('@repeat', { link = 'Repeat' })
-hi('@label', { link = 'Label' })
-hi('@operator', { link = 'Operator' })
-hi('@keyword', { link = 'Keyword' })
-hi('@exception', { link = 'Exception' })
+hi('@keyword.conditional', { link = 'Conditional' })
+hi('@keyword.repeat', { link = 'Repeat' })
+hi('@label', { link = 'Label' })
+hi('@operator', { link = 'Operator' })
+hi('@keyword', { link = 'Keyword' })
+hi('@keyword.exception', { link = 'Exception' })
-hi('@variable', { link = 'Identifier' })
-hi('@type', { link = 'Type' })
-hi('@type.definition', { link = 'Typedef' })
-hi('@storageclass', { link = 'StorageClass' })
-hi('@namespace', { link = 'Identifier' })
-hi('@include', { link = 'Include' })
-hi('@preproc', { link = 'PreProc' })
-hi('@debug', { link = 'Debug' })
-hi('@tag', { link = 'Tag' })
+hi('@variable', { link = 'Identifier' })
+hi('@type', { link = 'Type' })
+hi('@type.definition', { link = 'Typedef' })
+hi('@keyword.storage', { link = 'StorageClass' })
+hi('@module', { link = 'Identifier' })
+hi('@keyword.import', { link = 'Include' })
+hi('@keyword.directive', { link = 'PreProc' })
+hi('@keyword.debug', { link = 'Debug' })
+hi('@tag', { link = 'Tag' })
-- LSP semantic tokens
hi('@lsp.type.class', { link = 'Structure' })