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

View File

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

View File

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

View File

@ -476,7 +476,7 @@ function M:log(task)
["#%d+"] = "LazyCommitIssue",
["^%S+:"] = dimmed and "Bold" or "LazyCommitType",
["^%S+(%(.*%))!?:"] = "LazyCommitScope",
["`.-`"] = "@text.literal.markdown_inline",
["`.-`"] = "@markup.raw.markdown_inline",
["%*.-%*"] = "Italic",
["%*%*.-%*%*"] = "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("."):nl()
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(".")
else
self:append("An accurate startuptime based on the actual CPU time of the Neovim process is not available."):nl()