From c6982939cdd0046a89d0849383476b69569d5462 Mon Sep 17 00:00:00 2001 From: Iron-E Date: Fri, 7 Jun 2024 09:26:15 -0400 Subject: [PATCH] fix: reference to undefined highlight group `@markup.title` --- after/queries/html/highlights.scm | 12 ++++++------ lua/highlite/groups/default.lua | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/after/queries/html/highlights.scm b/after/queries/html/highlights.scm index c3ecca3..51f9140 100644 --- a/after/queries/html/highlights.scm +++ b/after/queries/html/highlights.scm @@ -6,30 +6,30 @@ ; headers (element (start_tag (tag_name) @_tag (#eq? @_tag "h1")) - (text) @markup.title.1 + (text) @markup.heading.1 ) (element (start_tag (tag_name) @_tag (#eq? @_tag "h2")) - (text) @markup.title.2 + (text) @markup.heading.2 ) (element (start_tag (tag_name) @_tag (#eq? @_tag "h3")) - (text) @markup.title.3 + (text) @markup.heading.3 ) (element (start_tag (tag_name) @_tag (#eq? @_tag "h4")) - (text) @markup.title.4 + (text) @markup.heading.4 ) (element (start_tag (tag_name) @_tag (#eq? @_tag "h5")) - (text) @markup.title.5 + (text) @markup.heading.5 ) (element (start_tag (tag_name) @_tag (#eq? @_tag "h6")) - (text) @markup.title.6 + (text) @markup.heading.6 ) diff --git a/lua/highlite/groups/default.lua b/lua/highlite/groups/default.lua index 27df15a..8cd5d85 100644 --- a/lua/highlite/groups/default.lua +++ b/lua/highlite/groups/default.lua @@ -666,7 +666,7 @@ local function from_palette(palette, opts) groups.ReferencesCount = 'Number' groups.ReferencesIcon = 'DefinitionIcon' groups.TargetFileName = 'Directory' - groups.TargetWord = '@markup.title' + groups.TargetWord = '@markup.heading' end if all_nvim_plugins or nvim_plugins.mini ~= false then @@ -685,7 +685,7 @@ local function from_palette(palette, opts) end if all_nvim_plugins or nvim_plugins.nvim_tree ~= false then - groups.NvimTreeRootFolder = '@markup.title.NvimTree' + groups.NvimTreeRootFolder = '@markup.heading.NvimTree' groups.NvimTreeGitDeleted = '@diff.minus.NvimTree' groups.NvimTreeGitDirty = {fg = palette.warning} groups.NvimTreeGitIgnored = 'Ignore' @@ -845,7 +845,7 @@ local function from_palette(palette, opts) if all_vim_plugins or vim_plugins.undotree ~= false then groups.UndotreeBranch = '@punctuation.delimiter.undotree' - groups.UndotreeCurrent = '@markup.title.undotree' + groups.UndotreeCurrent = '@markup.heading.undotree' groups.UndotreeSeq = '@number.undotree' groups.UndotreeNode = '@character.special.undotree' groups.UndotreeTimeStamp = '@string.special.undotree' @@ -958,7 +958,7 @@ local function from_palette(palette, opts) groups.gitcommitDiscardedFile = 'gitcommitSelectedFile' groups.gitcommitOverFlow = '@error.gitcommit' groups.gitcommitSelectedFile = 'Directory' - groups.gitcommitSummary = '@markup.title.gitcommitSummary' + groups.gitcommitSummary = '@markup.heading.gitcommitSummary' groups.gitcommitUntrackedFile = 'gitcommitSelectedFile' groups.gitconfigAssignment = 'String' @@ -978,7 +978,7 @@ local function from_palette(palette, opts) groups.gitrebaseReset = 'gitrebaseLabel' groups.gitrebaseReword = 'gitrebasePick' groups.gitrebaseSquash = '@macro.gitrebase' - groups.gitrebaseSummary = '@markup.title.gitrebaseSummary' + groups.gitrebaseSummary = '@markup.heading.gitrebaseSummary' end if all_syntax or syntax.go ~= false then @@ -1012,7 +1012,7 @@ local function from_palette(palette, opts) if all_syntax or syntax.help ~= false then groups.helpCommand = '@markup.raw.help' groups.helpHeader = '@label.help' - groups.helpHeadline = '@markup.title.help' + groups.helpHeadline = '@markup.heading.help' groups.helpHyperTextJump = '@string.special.url.help' groups.helpHyperTextEntry = 'helpHyperTextJump' groups.helpExample = 'helpCommand' @@ -1037,7 +1037,7 @@ local function from_palette(palette, opts) groups.htmlTag = '@tag.delimiter.html' groups.htmlTagN = '@tag' groups.htmlTagName = 'htmlSpecialTagName' - groups.htmlTitle = '@markup.title.html' + groups.htmlTitle = '@markup.heading.html' end if all_syntax or syntax.i3config ~= false then