Skip to content

Commit 298bed1

Browse files
authored
fix: update to new treesitter capture groups (#1294)
1 parent d5c58bb commit 298bed1

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ To uninstall **lazy.nvim**, you need to remove the following files and directori
791791
| **LazyCommitScope** | **_Italic_** | conventional commit scope |
792792
| **LazyCommitType** | **_Title_** | conventional commit type |
793793
| **LazyDimmed** | **_Conceal_** | property |
794-
| **LazyDir** | **_@text.reference_** | directory |
794+
| **LazyDir** | **_@markup.link_** | directory |
795795
| **LazyH1** | **_IncSearch_** | home button |
796796
| **LazyH2** | **_Bold_** | titles |
797797
| **LazyLocal** | **_Constant_** | |
@@ -806,14 +806,14 @@ To uninstall **lazy.nvim**, you need to remove the following files and directori
806806
| **LazyReasonImport** | **_Identifier_** | |
807807
| **LazyReasonKeys** | **_Statement_** | |
808808
| **LazyReasonPlugin** | **_Special_** | |
809-
| **LazyReasonRequire** | **_@parameter_** | |
809+
| **LazyReasonRequire** | **_@variable.parameter_** | |
810810
| **LazyReasonRuntime** | **_@macro_** | |
811811
| **LazyReasonSource** | **_Character_** | |
812-
| **LazyReasonStart** | **_@field_** | |
812+
| **LazyReasonStart** | **_@variable.member_** | |
813813
| **LazySpecial** | **_@punctuation.special_** | |
814814
| **LazyTaskError** | **_ErrorMsg_** | task errors |
815815
| **LazyTaskOutput** | **_MsgArea_** | task output |
816-
| **LazyUrl** | **_@text.reference_** | url |
816+
| **LazyUrl** | **_@markup.link_** | url |
817817
| **LazyValue** | **_@string_** | value of a property |
818818

819819
<!-- colors:end -->

doc/lazy.nvim.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ Click to see all highlight groups ~
924924

925925
LazyDimmed Conceal property
926926

927-
LazyDir _@text.reference_ directory
927+
LazyDir _@markup.link_ directory
928928

929929
LazyH1 IncSearch homebutton
930930

@@ -955,21 +955,21 @@ Click to see all highlight groups ~
955955

956956
LazyReasonPlugin Special
957957

958-
LazyReasonRequire _@parameter_
958+
LazyReasonRequire _@variable.parameter_
959959

960960
LazyReasonRuntime _@macro_
961961

962962
LazyReasonSource Character
963963

964-
LazyReasonStart _@field_
964+
LazyReasonStart _@variable.member_
965965

966966
LazySpecial [email protected]_
967967

968968
LazyTaskError ErrorMsg taskerrors
969969

970970
LazyTaskOutput MsgArea task output
971971

972-
LazyUrl _@text.reference_ url
972+
LazyUrl _@markup.link_ url
973973

974974
LazyValue _@string_ valueof a property
975975
---------------------------------------------------------------------------------

lua/lazy/view/colors.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ M.colors = {
2121
ReasonPlugin = "Special",
2222
ReasonEvent = "Constant",
2323
ReasonKeys = "Statement",
24-
ReasonStart = "@field",
24+
ReasonStart = "@variable.member",
2525
ReasonSource = "Character",
2626
ReasonFt = "Character",
2727
ReasonCmd = "Operator",
2828
ReasonImport = "Identifier",
29-
ReasonRequire = "@parameter",
29+
ReasonRequire = "@variable.parameter",
3030
Button = "CursorLine",
3131
ButtonActive = "Visual",
3232
TaskOutput = "MsgArea", -- task output
3333
TaskError = "ErrorMsg", -- task errors
34-
Dir = "@text.reference", -- directory
35-
Url = "@text.reference", -- url
34+
Dir = "@markup.link", -- directory
35+
Url = "@markup.link", -- url
3636
}
3737

3838
M.did_setup = false

lua/lazy/view/render.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ function M:log(task)
476476
["#%d+"] = "LazyCommitIssue",
477477
["^%S+:"] = dimmed and "Bold" or "LazyCommitType",
478478
["^%S+(%(.*%))!?:"] = "LazyCommitScope",
479-
["`.-`"] = "@text.literal.markdown_inline",
479+
["`.-`"] = "@markup.raw.markdown_inline",
480480
["%*.-%*"] = "Italic",
481481
["%*%*.-%*%*"] = "Bold",
482482
})
@@ -582,7 +582,7 @@ function M:profile()
582582
self:append("Based on the actual CPU time of the Neovim process till "):append("UIEnter", "LazySpecial")
583583
self:append("."):nl()
584584
self:append("This is more accurate than ")
585-
self:append("`nvim --startuptime`", "@text.literal.markdown_inline")
585+
self:append("`nvim --startuptime`", "@markup.raw.markdown_inline")
586586
self:append(".")
587587
else
588588
self:append("An accurate startuptime based on the actual CPU time of the Neovim process is not available."):nl()

0 commit comments

Comments
 (0)