Skip to content

Commit 65a4340

Browse files
committed
feat(winbar): Added lua_patterns support
1 parent feecfa0 commit 65a4340

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

lua/bars/winbar.lua

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,98 @@ winbar.config = {
471471
},
472472

473473
---|fE
474+
},
475+
476+
["^lua_patterns$"] = {
477+
chunk = {
478+
icon = "󰛪 ",
479+
hl = "@comment"
480+
},
481+
482+
483+
start_assertion = {
484+
icon = "󰾺 ",
485+
hl = "@keyword"
486+
},
487+
488+
end_assertion = {
489+
icon = "󰾸 ",
490+
hl = "@keyword"
491+
},
492+
493+
494+
zero_or_more = {
495+
icon = "",
496+
hl = "@keyword.operator"
497+
},
498+
499+
one_or_more = {
500+
icon = "",
501+
hl = "@keyword.operator"
502+
},
503+
504+
lazy = {
505+
icon = "",
506+
hl = "@keyword.operator"
507+
},
508+
509+
optional = {
510+
icon = "",
511+
hl = "@keyword.operator"
512+
},
513+
514+
515+
literal_character = {
516+
icon = "󱄽 ",
517+
hl = "@character"
518+
},
519+
520+
character_reference = {
521+
icon = "",
522+
hl = "@constant.builtin"
523+
},
524+
525+
any_character = {
526+
icon = "",
527+
hl = "@variable.member"
528+
},
529+
530+
531+
character_class = {
532+
icon = "󰏗 ",
533+
hl = "@variable.builtin"
534+
},
535+
536+
character_range = {
537+
icon = "󰊱 ",
538+
hl = "@comment"
539+
},
540+
541+
character_set = {
542+
icon = "󱉓 ",
543+
hl = "@label"
544+
},
545+
546+
character_set_content = {
547+
icon = "󰆦 ",
548+
hl = "@comment"
549+
},
550+
551+
caprure_group = {
552+
icon = "",
553+
hl = "@label"
554+
},
555+
556+
557+
escaped_character = {
558+
icon = "󰩈 ",
559+
hl = "@string.escape"
560+
},
561+
562+
escape_sequence = {
563+
icon = "󰩈 ",
564+
hl = "@character.special"
565+
},
474566
}
475567
}
476568
}

0 commit comments

Comments
 (0)