Skip to content

Commit

Permalink
fix: reference to undefined highlight group @markup.title
Browse files Browse the repository at this point in the history
  • Loading branch information
Iron-E committed Jun 7, 2024
1 parent 4625280 commit c698293
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions after/queries/html/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
14 changes: 7 additions & 7 deletions lua/highlite/groups/default.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit c698293

Please sign in to comment.