fix: update to new treesitter capture groups (#1294)

This commit is contained in:
Riley Bruins 2024-03-07 08:34:29 -08:00 committed by GitHub
parent d5c58bb193
commit 298bed190e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 14 additions and 14 deletions

View File

@ -791,7 +791,7 @@ To uninstall **lazy.nvim**, you need to remove the following files and directori
| **LazyCommitScope** | **_Italic_** | conventional commit scope | | **LazyCommitScope** | **_Italic_** | conventional commit scope |
| **LazyCommitType** | **_Title_** | conventional commit type | | **LazyCommitType** | **_Title_** | conventional commit type |
| **LazyDimmed** | **_Conceal_** | property | | **LazyDimmed** | **_Conceal_** | property |
| **LazyDir** | **_@text.reference_** | directory | | **LazyDir** | **_@markup.link_** | directory |
| **LazyH1** | **_IncSearch_** | home button | | **LazyH1** | **_IncSearch_** | home button |
| **LazyH2** | **_Bold_** | titles | | **LazyH2** | **_Bold_** | titles |
| **LazyLocal** | **_Constant_** | | | **LazyLocal** | **_Constant_** | |
@ -806,14 +806,14 @@ To uninstall **lazy.nvim**, you need to remove the following files and directori
| **LazyReasonImport** | **_Identifier_** | | | **LazyReasonImport** | **_Identifier_** | |
| **LazyReasonKeys** | **_Statement_** | | | **LazyReasonKeys** | **_Statement_** | |
| **LazyReasonPlugin** | **_Special_** | | | **LazyReasonPlugin** | **_Special_** | |
| **LazyReasonRequire** | **_@parameter_** | | | **LazyReasonRequire** | **_@variable.parameter_** | |
| **LazyReasonRuntime** | **_@macro_** | | | **LazyReasonRuntime** | **_@macro_** | |
| **LazyReasonSource** | **_Character_** | | | **LazyReasonSource** | **_Character_** | |
| **LazyReasonStart** | **_@field_** | | | **LazyReasonStart** | **_@variable.member_** | |
| **LazySpecial** | **_@punctuation.special_** | | | **LazySpecial** | **_@punctuation.special_** | |
| **LazyTaskError** | **_ErrorMsg_** | task errors | | **LazyTaskError** | **_ErrorMsg_** | task errors |
| **LazyTaskOutput** | **_MsgArea_** | task output | | **LazyTaskOutput** | **_MsgArea_** | task output |
| **LazyUrl** | **_@text.reference_** | url | | **LazyUrl** | **_@markup.link_** | url |
| **LazyValue** | **_@string_** | value of a property | | **LazyValue** | **_@string_** | value of a property |
<!-- colors:end --> <!-- colors:end -->

View File

@ -924,7 +924,7 @@ Click to see all highlight groups ~
LazyDimmed Conceal property LazyDimmed Conceal property
LazyDir _@text.reference_ directory LazyDir _@markup.link_ directory
LazyH1 IncSearch homebutton LazyH1 IncSearch homebutton
@ -955,13 +955,13 @@ Click to see all highlight groups ~
LazyReasonPlugin Special LazyReasonPlugin Special
LazyReasonRequire _@parameter_ LazyReasonRequire _@variable.parameter_
LazyReasonRuntime _@macro_ LazyReasonRuntime _@macro_
LazyReasonSource Character LazyReasonSource Character
LazyReasonStart _@field_ LazyReasonStart _@variable.member_
LazySpecial _@punctuation.special_ LazySpecial _@punctuation.special_
@ -969,7 +969,7 @@ Click to see all highlight groups ~
LazyTaskOutput MsgArea task output LazyTaskOutput MsgArea task output
LazyUrl _@text.reference_ url LazyUrl _@markup.link_ url
LazyValue _@string_ valueof a property LazyValue _@string_ valueof a property
--------------------------------------------------------------------------------- ---------------------------------------------------------------------------------

View File

@ -21,18 +21,18 @@ M.colors = {
ReasonPlugin = "Special", ReasonPlugin = "Special",
ReasonEvent = "Constant", ReasonEvent = "Constant",
ReasonKeys = "Statement", ReasonKeys = "Statement",
ReasonStart = "@field", ReasonStart = "@variable.member",
ReasonSource = "Character", ReasonSource = "Character",
ReasonFt = "Character", ReasonFt = "Character",
ReasonCmd = "Operator", ReasonCmd = "Operator",
ReasonImport = "Identifier", ReasonImport = "Identifier",
ReasonRequire = "@parameter", ReasonRequire = "@variable.parameter",
Button = "CursorLine", Button = "CursorLine",
ButtonActive = "Visual", ButtonActive = "Visual",
TaskOutput = "MsgArea", -- task output TaskOutput = "MsgArea", -- task output
TaskError = "ErrorMsg", -- task errors TaskError = "ErrorMsg", -- task errors
Dir = "@text.reference", -- directory Dir = "@markup.link", -- directory
Url = "@text.reference", -- url Url = "@markup.link", -- url
} }
M.did_setup = false M.did_setup = false

View File

@ -476,7 +476,7 @@ function M:log(task)
["#%d+"] = "LazyCommitIssue", ["#%d+"] = "LazyCommitIssue",
["^%S+:"] = dimmed and "Bold" or "LazyCommitType", ["^%S+:"] = dimmed and "Bold" or "LazyCommitType",
["^%S+(%(.*%))!?:"] = "LazyCommitScope", ["^%S+(%(.*%))!?:"] = "LazyCommitScope",
["`.-`"] = "@text.literal.markdown_inline", ["`.-`"] = "@markup.raw.markdown_inline",
["%*.-%*"] = "Italic", ["%*.-%*"] = "Italic",
["%*%*.-%*%*"] = "Bold", ["%*%*.-%*%*"] = "Bold",
}) })
@ -582,7 +582,7 @@ function M:profile()
self:append("Based on the actual CPU time of the Neovim process till "):append("UIEnter", "LazySpecial") self:append("Based on the actual CPU time of the Neovim process till "):append("UIEnter", "LazySpecial")
self:append("."):nl() self:append("."):nl()
self:append("This is more accurate than ") self:append("This is more accurate than ")
self:append("`nvim --startuptime`", "@text.literal.markdown_inline") self:append("`nvim --startuptime`", "@markup.raw.markdown_inline")
self:append(".") self:append(".")
else else
self:append("An accurate startuptime based on the actual CPU time of the Neovim process is not available."):nl() self:append("An accurate startuptime based on the actual CPU time of the Neovim process is not available."):nl()