Skip to content

Commit

Permalink
fix: update to new treesitter capture groups (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
ribru17 committed Mar 7, 2024
1 parent d5c58bb commit 298bed1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_** | |
Expand All @@ -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 -->
Expand Down
8 changes: 4 additions & 4 deletions doc/lazy.nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ Click to see all highlight groups ~

LazyDimmed Conceal property

LazyDir _@text.reference_ directory
LazyDir _@markup.link_ directory

LazyH1 IncSearch homebutton

Expand Down Expand Up @@ -955,21 +955,21 @@ 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_

LazyTaskError ErrorMsg taskerrors

LazyTaskOutput MsgArea task output

LazyUrl _@text.reference_ url
LazyUrl _@markup.link_ url

LazyValue _@string_ valueof a property
---------------------------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions lua/lazy/view/colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lua/lazy/view/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
})
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 298bed1

Please sign in to comment.