All my dotfiles
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add bat comlink and wezterm

reykjalin.org 3bce5231 9473f9b5

verified
+2255
+3
bat/config
··· 1 + # Set theme to "ansi-dark" 2 + # --theme="Monokai Extended Light" 3 + --theme="Catppuccin-Mocha"
+2059
bat/themes/Catppuccin-Mocha.tmTheme
··· 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 3 + <plist version="1.0"> 4 + <dict> 5 + <key>name</key> 6 + <string>Catppuccin Mocha</string> 7 + <key>semanticClass</key> 8 + <string>theme.dark.catppuccin-mocha</string> 9 + <key>uuid</key> 10 + <string>627ce890-fabb-4d39-9819-7be71f4bdca7</string> 11 + <key>author</key> 12 + <string>Catppuccin Org</string> 13 + <key>colorSpaceName</key> 14 + <string>sRGB</string> 15 + <key>settings</key> 16 + <array> 17 + <dict> 18 + <key>settings</key> 19 + <dict> 20 + <key>background</key> 21 + <string>#1e1e2e</string> 22 + <key>foreground</key> 23 + <string>#cdd6f4</string> 24 + <key>caret</key> 25 + <string>#f5e0dc</string> 26 + <key>lineHighlight</key> 27 + <string>#313244</string> 28 + <key>misspelling</key> 29 + <string>#f38ba8</string> 30 + <key>accent</key> 31 + <string>#cba6f7</string> 32 + <key>selection</key> 33 + <string>#9399b240</string> 34 + <key>activeGuide</key> 35 + <string>#45475a</string> 36 + <key>findHighlight</key> 37 + <string>#3e5767</string> 38 + <key>gutterForeground</key> 39 + <string>#7f849c</string> 40 + </dict> 41 + </dict> 42 + <dict> 43 + <key>name</key> 44 + <string>Basic text &amp; variable names (incl. leading punctuation)</string> 45 + <key>scope</key> 46 + <string>text, source, variable.other.readwrite, punctuation.definition.variable</string> 47 + <key>settings</key> 48 + <dict> 49 + <key>foreground</key> 50 + <string>#cdd6f4</string> 51 + </dict> 52 + </dict> 53 + <dict> 54 + <key>name</key> 55 + <string>Parentheses, Brackets, Braces</string> 56 + <key>scope</key> 57 + <string>punctuation</string> 58 + <key>settings</key> 59 + <dict> 60 + <key>foreground</key> 61 + <string>#9399b2</string> 62 + <key>fontStyle</key> 63 + <string/> 64 + </dict> 65 + </dict> 66 + <dict> 67 + <key>name</key> 68 + <string>Comments</string> 69 + <key>scope</key> 70 + <string>comment, punctuation.definition.comment</string> 71 + <key>settings</key> 72 + <dict> 73 + <key>foreground</key> 74 + <string>#6c7086</string> 75 + <key>fontStyle</key> 76 + <string>italic</string> 77 + </dict> 78 + </dict> 79 + <dict> 80 + <key>scope</key> 81 + <string>string, punctuation.definition.string</string> 82 + <key>settings</key> 83 + <dict> 84 + <key>foreground</key> 85 + <string>#a6e3a1</string> 86 + </dict> 87 + </dict> 88 + <dict> 89 + <key>scope</key> 90 + <string>constant.character.escape</string> 91 + <key>settings</key> 92 + <dict> 93 + <key>foreground</key> 94 + <string>#f5c2e7</string> 95 + </dict> 96 + </dict> 97 + <dict> 98 + <key>name</key> 99 + <string>Booleans, constants, numbers</string> 100 + <key>scope</key> 101 + <string>constant.numeric, variable.other.constant, entity.name.constant, constant.language.boolean, constant.language.false, constant.language.true, keyword.other.unit.user-defined, keyword.other.unit.suffix.floating-point</string> 102 + <key>settings</key> 103 + <dict> 104 + <key>foreground</key> 105 + <string>#fab387</string> 106 + </dict> 107 + </dict> 108 + <dict> 109 + <key>scope</key> 110 + <string>keyword, keyword.operator.word, keyword.operator.new, variable.language.super, support.type.primitive, storage.type, storage.modifier, punctuation.definition.keyword</string> 111 + <key>settings</key> 112 + <dict> 113 + <key>foreground</key> 114 + <string>#cba6f7</string> 115 + <key>fontStyle</key> 116 + <string/> 117 + </dict> 118 + </dict> 119 + <dict> 120 + <key>scope</key> 121 + <string>entity.name.tag.documentation</string> 122 + <key>settings</key> 123 + <dict> 124 + <key>foreground</key> 125 + <string>#cba6f7</string> 126 + </dict> 127 + </dict> 128 + <dict> 129 + <key>name</key> 130 + <string>Punctuation</string> 131 + <key>scope</key> 132 + <string>keyword.operator, punctuation.accessor, punctuation.definition.generic, meta.function.closure punctuation.section.parameters, punctuation.definition.tag, punctuation.separator.key-value</string> 133 + <key>settings</key> 134 + <dict> 135 + <key>foreground</key> 136 + <string>#94e2d5</string> 137 + </dict> 138 + </dict> 139 + <dict> 140 + <key>scope</key> 141 + <string>entity.name.function, meta.function-call.method, support.function, support.function.misc, variable.function</string> 142 + <key>settings</key> 143 + <dict> 144 + <key>foreground</key> 145 + <string>#89b4fa</string> 146 + <key>fontStyle</key> 147 + <string>italic</string> 148 + </dict> 149 + </dict> 150 + <dict> 151 + <key>name</key> 152 + <string>Classes</string> 153 + <key>scope</key> 154 + <string>entity.name.class, entity.other.inherited-class, support.class, meta.function-call.constructor, entity.name.struct</string> 155 + <key>settings</key> 156 + <dict> 157 + <key>foreground</key> 158 + <string>#f9e2af</string> 159 + <key>fontStyle</key> 160 + <string>italic</string> 161 + </dict> 162 + </dict> 163 + <dict> 164 + <key>name</key> 165 + <string>Enum</string> 166 + <key>scope</key> 167 + <string>entity.name.enum</string> 168 + <key>settings</key> 169 + <dict> 170 + <key>foreground</key> 171 + <string>#f9e2af</string> 172 + <key>fontStyle</key> 173 + <string>italic</string> 174 + </dict> 175 + </dict> 176 + <dict> 177 + <key>name</key> 178 + <string>Enum member</string> 179 + <key>scope</key> 180 + <string>meta.enum variable.other.readwrite, variable.other.enummember</string> 181 + <key>settings</key> 182 + <dict> 183 + <key>foreground</key> 184 + <string>#94e2d5</string> 185 + </dict> 186 + </dict> 187 + <dict> 188 + <key>name</key> 189 + <string>Object properties</string> 190 + <key>scope</key> 191 + <string>meta.property.object</string> 192 + <key>settings</key> 193 + <dict> 194 + <key>foreground</key> 195 + <string>#94e2d5</string> 196 + </dict> 197 + </dict> 198 + <dict> 199 + <key>name</key> 200 + <string>Types</string> 201 + <key>scope</key> 202 + <string>meta.type, meta.type-alias, support.type, entity.name.type</string> 203 + <key>settings</key> 204 + <dict> 205 + <key>foreground</key> 206 + <string>#f9e2af</string> 207 + <key>fontStyle</key> 208 + <string>italic</string> 209 + </dict> 210 + </dict> 211 + <dict> 212 + <key>name</key> 213 + <string>Decorators</string> 214 + <key>scope</key> 215 + <string>meta.annotation variable.function, meta.annotation variable.annotation.function, meta.annotation punctuation.definition.annotation, meta.decorator, punctuation.decorator</string> 216 + <key>settings</key> 217 + <dict> 218 + <key>foreground</key> 219 + <string>#fab387</string> 220 + </dict> 221 + </dict> 222 + <dict> 223 + <key>scope</key> 224 + <string>variable.parameter, meta.function.parameters</string> 225 + <key>settings</key> 226 + <dict> 227 + <key>foreground</key> 228 + <string>#eba0ac</string> 229 + <key>fontStyle</key> 230 + <string>italic</string> 231 + </dict> 232 + </dict> 233 + <dict> 234 + <key>name</key> 235 + <string>Built-ins</string> 236 + <key>scope</key> 237 + <string>constant.language, support.function.builtin</string> 238 + <key>settings</key> 239 + <dict> 240 + <key>foreground</key> 241 + <string>#f38ba8</string> 242 + </dict> 243 + </dict> 244 + <dict> 245 + <key>scope</key> 246 + <string>entity.other.attribute-name.documentation</string> 247 + <key>settings</key> 248 + <dict> 249 + <key>foreground</key> 250 + <string>#f38ba8</string> 251 + </dict> 252 + </dict> 253 + <dict> 254 + <key>name</key> 255 + <string>Preprocessor directives</string> 256 + <key>scope</key> 257 + <string>keyword.control.directive, punctuation.definition.directive</string> 258 + <key>settings</key> 259 + <dict> 260 + <key>foreground</key> 261 + <string>#f9e2af</string> 262 + </dict> 263 + </dict> 264 + <dict> 265 + <key>name</key> 266 + <string>Type parameters</string> 267 + <key>scope</key> 268 + <string>punctuation.definition.typeparameters</string> 269 + <key>settings</key> 270 + <dict> 271 + <key>foreground</key> 272 + <string>#89dceb</string> 273 + </dict> 274 + </dict> 275 + <dict> 276 + <key>name</key> 277 + <string>Namespaces</string> 278 + <key>scope</key> 279 + <string>entity.name.namespace</string> 280 + <key>settings</key> 281 + <dict> 282 + <key>foreground</key> 283 + <string>#f9e2af</string> 284 + </dict> 285 + </dict> 286 + <dict> 287 + <key>name</key> 288 + <string>Property names (left hand assignments in json/yaml/css)</string> 289 + <key>scope</key> 290 + <string>support.type.property-name.css</string> 291 + <key>settings</key> 292 + <dict> 293 + <key>foreground</key> 294 + <string>#89b4fa</string> 295 + <key>fontStyle</key> 296 + <string/> 297 + </dict> 298 + </dict> 299 + <dict> 300 + <key>name</key> 301 + <string>This/Self keyword</string> 302 + <key>scope</key> 303 + <string>variable.language.this, variable.language.this punctuation.definition.variable</string> 304 + <key>settings</key> 305 + <dict> 306 + <key>foreground</key> 307 + <string>#f38ba8</string> 308 + </dict> 309 + </dict> 310 + <dict> 311 + <key>name</key> 312 + <string>Object properties</string> 313 + <key>scope</key> 314 + <string>variable.object.property</string> 315 + <key>settings</key> 316 + <dict> 317 + <key>foreground</key> 318 + <string>#cdd6f4</string> 319 + </dict> 320 + </dict> 321 + <dict> 322 + <key>name</key> 323 + <string>String template interpolation</string> 324 + <key>scope</key> 325 + <string>string.template variable, string variable</string> 326 + <key>settings</key> 327 + <dict> 328 + <key>foreground</key> 329 + <string>#cdd6f4</string> 330 + </dict> 331 + </dict> 332 + <dict> 333 + <key>name</key> 334 + <string>`new` as bold</string> 335 + <key>scope</key> 336 + <string>keyword.operator.new</string> 337 + <key>settings</key> 338 + <dict> 339 + <key>fontStyle</key> 340 + <string>bold</string> 341 + </dict> 342 + </dict> 343 + <dict> 344 + <key>name</key> 345 + <string>C++ extern keyword</string> 346 + <key>scope</key> 347 + <string>storage.modifier.specifier.extern.cpp</string> 348 + <key>settings</key> 349 + <dict> 350 + <key>foreground</key> 351 + <string>#cba6f7</string> 352 + </dict> 353 + </dict> 354 + <dict> 355 + <key>name</key> 356 + <string>C++ scope resolution</string> 357 + <key>scope</key> 358 + <string>entity.name.scope-resolution.template.call.cpp, entity.name.scope-resolution.parameter.cpp, entity.name.scope-resolution.cpp, entity.name.scope-resolution.function.definition.cpp</string> 359 + <key>settings</key> 360 + <dict> 361 + <key>foreground</key> 362 + <string>#f9e2af</string> 363 + </dict> 364 + </dict> 365 + <dict> 366 + <key>name</key> 367 + <string>C++ doc keywords</string> 368 + <key>scope</key> 369 + <string>storage.type.class.doxygen</string> 370 + <key>settings</key> 371 + <dict> 372 + <key>fontStyle</key> 373 + <string/> 374 + </dict> 375 + </dict> 376 + <dict> 377 + <key>name</key> 378 + <string>C++ operators</string> 379 + <key>scope</key> 380 + <string>storage.modifier.reference.cpp</string> 381 + <key>settings</key> 382 + <dict> 383 + <key>foreground</key> 384 + <string>#94e2d5</string> 385 + </dict> 386 + </dict> 387 + <dict> 388 + <key>name</key> 389 + <string>C# Interpolated Strings</string> 390 + <key>scope</key> 391 + <string>meta.interpolation.cs</string> 392 + <key>settings</key> 393 + <dict> 394 + <key>foreground</key> 395 + <string>#cdd6f4</string> 396 + </dict> 397 + </dict> 398 + <dict> 399 + <key>name</key> 400 + <string>C# xml-style docs</string> 401 + <key>scope</key> 402 + <string>comment.block.documentation.cs</string> 403 + <key>settings</key> 404 + <dict> 405 + <key>foreground</key> 406 + <string>#cdd6f4</string> 407 + </dict> 408 + </dict> 409 + <dict> 410 + <key>name</key> 411 + <string>Classes, reflecting the className color in JSX</string> 412 + <key>scope</key> 413 + <string>source.css entity.other.attribute-name.class.css, entity.other.attribute-name.parent-selector.css punctuation.definition.entity.css</string> 414 + <key>settings</key> 415 + <dict> 416 + <key>foreground</key> 417 + <string>#f9e2af</string> 418 + </dict> 419 + </dict> 420 + <dict> 421 + <key>name</key> 422 + <string>Operators</string> 423 + <key>scope</key> 424 + <string>punctuation.separator.operator.css</string> 425 + <key>settings</key> 426 + <dict> 427 + <key>foreground</key> 428 + <string>#94e2d5</string> 429 + </dict> 430 + </dict> 431 + <dict> 432 + <key>name</key> 433 + <string>Pseudo classes</string> 434 + <key>scope</key> 435 + <string>source.css entity.other.attribute-name.pseudo-class</string> 436 + <key>settings</key> 437 + <dict> 438 + <key>foreground</key> 439 + <string>#94e2d5</string> 440 + </dict> 441 + </dict> 442 + <dict> 443 + <key>scope</key> 444 + <string>source.css constant.other.unicode-range</string> 445 + <key>settings</key> 446 + <dict> 447 + <key>foreground</key> 448 + <string>#fab387</string> 449 + </dict> 450 + </dict> 451 + <dict> 452 + <key>scope</key> 453 + <string>source.css variable.parameter.url</string> 454 + <key>settings</key> 455 + <dict> 456 + <key>foreground</key> 457 + <string>#a6e3a1</string> 458 + <key>fontStyle</key> 459 + <string/> 460 + </dict> 461 + </dict> 462 + <dict> 463 + <key>name</key> 464 + <string>CSS vendored property names</string> 465 + <key>scope</key> 466 + <string>support.type.vendored.property-name</string> 467 + <key>settings</key> 468 + <dict> 469 + <key>foreground</key> 470 + <string>#89dceb</string> 471 + </dict> 472 + </dict> 473 + <dict> 474 + <key>name</key> 475 + <string>Less/SCSS right-hand variables (@/$-prefixed)</string> 476 + <key>scope</key> 477 + <string>source.css meta.property-value variable, source.css meta.property-value variable.other.less, source.css meta.property-value variable.other.less punctuation.definition.variable.less, meta.definition.variable.scss</string> 478 + <key>settings</key> 479 + <dict> 480 + <key>foreground</key> 481 + <string>#eba0ac</string> 482 + </dict> 483 + </dict> 484 + <dict> 485 + <key>name</key> 486 + <string>CSS variables (--prefixed)</string> 487 + <key>scope</key> 488 + <string>source.css meta.property-list variable, meta.property-list variable.other.less, meta.property-list variable.other.less punctuation.definition.variable.less</string> 489 + <key>settings</key> 490 + <dict> 491 + <key>foreground</key> 492 + <string>#89b4fa</string> 493 + </dict> 494 + </dict> 495 + <dict> 496 + <key>name</key> 497 + <string>CSS Percentage values, styled the same as numbers</string> 498 + <key>scope</key> 499 + <string>keyword.other.unit.percentage.css</string> 500 + <key>settings</key> 501 + <dict> 502 + <key>foreground</key> 503 + <string>#fab387</string> 504 + </dict> 505 + </dict> 506 + <dict> 507 + <key>name</key> 508 + <string>CSS Attribute selectors, styled the same as strings</string> 509 + <key>scope</key> 510 + <string>source.css meta.attribute-selector</string> 511 + <key>settings</key> 512 + <dict> 513 + <key>foreground</key> 514 + <string>#a6e3a1</string> 515 + </dict> 516 + </dict> 517 + <dict> 518 + <key>name</key> 519 + <string>JSON/YAML keys, other left-hand assignments</string> 520 + <key>scope</key> 521 + <string>keyword.other.definition.ini, punctuation.support.type.property-name.json, support.type.property-name.json, punctuation.support.type.property-name.toml, support.type.property-name.toml, entity.name.tag.yaml, punctuation.support.type.property-name.yaml, support.type.property-name.yaml</string> 522 + <key>settings</key> 523 + <dict> 524 + <key>foreground</key> 525 + <string>#89b4fa</string> 526 + <key>fontStyle</key> 527 + <string/> 528 + </dict> 529 + </dict> 530 + <dict> 531 + <key>name</key> 532 + <string>JSON/YAML constants</string> 533 + <key>scope</key> 534 + <string>constant.language.json, constant.language.yaml</string> 535 + <key>settings</key> 536 + <dict> 537 + <key>foreground</key> 538 + <string>#fab387</string> 539 + </dict> 540 + </dict> 541 + <dict> 542 + <key>name</key> 543 + <string>YAML anchors</string> 544 + <key>scope</key> 545 + <string>entity.name.type.anchor.yaml, variable.other.alias.yaml</string> 546 + <key>settings</key> 547 + <dict> 548 + <key>foreground</key> 549 + <string>#f9e2af</string> 550 + <key>fontStyle</key> 551 + <string/> 552 + </dict> 553 + </dict> 554 + <dict> 555 + <key>name</key> 556 + <string>TOML tables / ini groups</string> 557 + <key>scope</key> 558 + <string>support.type.property-name.table, entity.name.section.group-title.ini</string> 559 + <key>settings</key> 560 + <dict> 561 + <key>foreground</key> 562 + <string>#f9e2af</string> 563 + </dict> 564 + </dict> 565 + <dict> 566 + <key>name</key> 567 + <string>TOML dates</string> 568 + <key>scope</key> 569 + <string>constant.other.time.datetime.offset.toml</string> 570 + <key>settings</key> 571 + <dict> 572 + <key>foreground</key> 573 + <string>#f5c2e7</string> 574 + </dict> 575 + </dict> 576 + <dict> 577 + <key>name</key> 578 + <string>YAML anchor puctuation</string> 579 + <key>scope</key> 580 + <string>punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml</string> 581 + <key>settings</key> 582 + <dict> 583 + <key>foreground</key> 584 + <string>#f5c2e7</string> 585 + </dict> 586 + </dict> 587 + <dict> 588 + <key>name</key> 589 + <string>YAML triple dashes</string> 590 + <key>scope</key> 591 + <string>entity.other.document.begin.yaml</string> 592 + <key>settings</key> 593 + <dict> 594 + <key>foreground</key> 595 + <string>#f5c2e7</string> 596 + </dict> 597 + </dict> 598 + <dict> 599 + <key>name</key> 600 + <string>Markup Diff</string> 601 + <key>scope</key> 602 + <string>markup.changed.diff</string> 603 + <key>settings</key> 604 + <dict> 605 + <key>foreground</key> 606 + <string>#fab387</string> 607 + </dict> 608 + </dict> 609 + <dict> 610 + <key>name</key> 611 + <string>Diff</string> 612 + <key>scope</key> 613 + <string>meta.diff.header.from-file, meta.diff.header.to-file, punctuation.definition.from-file.diff, punctuation.definition.to-file.diff</string> 614 + <key>settings</key> 615 + <dict> 616 + <key>foreground</key> 617 + <string>#89b4fa</string> 618 + </dict> 619 + </dict> 620 + <dict> 621 + <key>name</key> 622 + <string>Diff Inserted</string> 623 + <key>scope</key> 624 + <string>markup.inserted.diff</string> 625 + <key>settings</key> 626 + <dict> 627 + <key>foreground</key> 628 + <string>#a6e3a1</string> 629 + </dict> 630 + </dict> 631 + <dict> 632 + <key>name</key> 633 + <string>Diff Deleted</string> 634 + <key>scope</key> 635 + <string>markup.deleted.diff</string> 636 + <key>settings</key> 637 + <dict> 638 + <key>foreground</key> 639 + <string>#f38ba8</string> 640 + </dict> 641 + </dict> 642 + <dict> 643 + <key>name</key> 644 + <string>dotenv left-hand side assignments</string> 645 + <key>scope</key> 646 + <string>variable.other.env</string> 647 + <key>settings</key> 648 + <dict> 649 + <key>foreground</key> 650 + <string>#89b4fa</string> 651 + </dict> 652 + </dict> 653 + <dict> 654 + <key>name</key> 655 + <string>dotenv reference to existing env variable</string> 656 + <key>scope</key> 657 + <string>string.quoted variable.other.env</string> 658 + <key>settings</key> 659 + <dict> 660 + <key>foreground</key> 661 + <string>#cdd6f4</string> 662 + </dict> 663 + </dict> 664 + <dict> 665 + <key>name</key> 666 + <string>GDScript functions</string> 667 + <key>scope</key> 668 + <string>support.function.builtin.gdscript</string> 669 + <key>settings</key> 670 + <dict> 671 + <key>foreground</key> 672 + <string>#89b4fa</string> 673 + </dict> 674 + </dict> 675 + <dict> 676 + <key>name</key> 677 + <string>GDScript constants</string> 678 + <key>scope</key> 679 + <string>constant.language.gdscript</string> 680 + <key>settings</key> 681 + <dict> 682 + <key>foreground</key> 683 + <string>#fab387</string> 684 + </dict> 685 + </dict> 686 + <dict> 687 + <key>name</key> 688 + <string>Comment keywords</string> 689 + <key>scope</key> 690 + <string>comment meta.annotation.go</string> 691 + <key>settings</key> 692 + <dict> 693 + <key>foreground</key> 694 + <string>#eba0ac</string> 695 + </dict> 696 + </dict> 697 + <dict> 698 + <key>name</key> 699 + <string>go:embed, go:build, etc.</string> 700 + <key>scope</key> 701 + <string>comment meta.annotation.parameters.go</string> 702 + <key>settings</key> 703 + <dict> 704 + <key>foreground</key> 705 + <string>#fab387</string> 706 + </dict> 707 + </dict> 708 + <dict> 709 + <key>name</key> 710 + <string>Go constants (nil, true, false)</string> 711 + <key>scope</key> 712 + <string>constant.language.go</string> 713 + <key>settings</key> 714 + <dict> 715 + <key>foreground</key> 716 + <string>#fab387</string> 717 + </dict> 718 + </dict> 719 + <dict> 720 + <key>name</key> 721 + <string>GraphQL variables</string> 722 + <key>scope</key> 723 + <string>variable.graphql</string> 724 + <key>settings</key> 725 + <dict> 726 + <key>foreground</key> 727 + <string>#cdd6f4</string> 728 + </dict> 729 + </dict> 730 + <dict> 731 + <key>name</key> 732 + <string>GraphQL aliases</string> 733 + <key>scope</key> 734 + <string>string.unquoted.alias.graphql</string> 735 + <key>settings</key> 736 + <dict> 737 + <key>foreground</key> 738 + <string>#f2cdcd</string> 739 + </dict> 740 + </dict> 741 + <dict> 742 + <key>name</key> 743 + <string>GraphQL enum members</string> 744 + <key>scope</key> 745 + <string>constant.character.enum.graphql</string> 746 + <key>settings</key> 747 + <dict> 748 + <key>foreground</key> 749 + <string>#94e2d5</string> 750 + </dict> 751 + </dict> 752 + <dict> 753 + <key>name</key> 754 + <string>GraphQL field in types</string> 755 + <key>scope</key> 756 + <string>meta.objectvalues.graphql constant.object.key.graphql string.unquoted.graphql</string> 757 + <key>settings</key> 758 + <dict> 759 + <key>foreground</key> 760 + <string>#f2cdcd</string> 761 + </dict> 762 + </dict> 763 + <dict> 764 + <key>name</key> 765 + <string>HTML/XML DOCTYPE as keyword</string> 766 + <key>scope</key> 767 + <string>keyword.other.doctype, meta.tag.sgml.doctype punctuation.definition.tag, meta.tag.metadata.doctype entity.name.tag, meta.tag.metadata.doctype punctuation.definition.tag</string> 768 + <key>settings</key> 769 + <dict> 770 + <key>foreground</key> 771 + <string>#cba6f7</string> 772 + </dict> 773 + </dict> 774 + <dict> 775 + <key>name</key> 776 + <string>HTML/XML-like &lt;tags/&gt;</string> 777 + <key>scope</key> 778 + <string>entity.name.tag</string> 779 + <key>settings</key> 780 + <dict> 781 + <key>foreground</key> 782 + <string>#89b4fa</string> 783 + <key>fontStyle</key> 784 + <string/> 785 + </dict> 786 + </dict> 787 + <dict> 788 + <key>name</key> 789 + <string>Special characters like &amp;amp;</string> 790 + <key>scope</key> 791 + <string>text.html constant.character.entity, text.html constant.character.entity punctuation, constant.character.entity.xml, constant.character.entity.xml punctuation, constant.character.entity.js.jsx, constant.charactger.entity.js.jsx punctuation, constant.character.entity.tsx, constant.character.entity.tsx punctuation</string> 792 + <key>settings</key> 793 + <dict> 794 + <key>foreground</key> 795 + <string>#f38ba8</string> 796 + </dict> 797 + </dict> 798 + <dict> 799 + <key>name</key> 800 + <string>HTML/XML tag attribute values</string> 801 + <key>scope</key> 802 + <string>entity.other.attribute-name</string> 803 + <key>settings</key> 804 + <dict> 805 + <key>foreground</key> 806 + <string>#f9e2af</string> 807 + </dict> 808 + </dict> 809 + <dict> 810 + <key>name</key> 811 + <string>Components</string> 812 + <key>scope</key> 813 + <string>support.class.component, support.class.component.jsx, support.class.component.tsx, support.class.component.vue</string> 814 + <key>settings</key> 815 + <dict> 816 + <key>foreground</key> 817 + <string>#f5c2e7</string> 818 + <key>fontStyle</key> 819 + <string/> 820 + </dict> 821 + </dict> 822 + <dict> 823 + <key>name</key> 824 + <string>Annotations</string> 825 + <key>scope</key> 826 + <string>punctuation.definition.annotation, storage.type.annotation</string> 827 + <key>settings</key> 828 + <dict> 829 + <key>foreground</key> 830 + <string>#fab387</string> 831 + </dict> 832 + </dict> 833 + <dict> 834 + <key>name</key> 835 + <string>Java enums</string> 836 + <key>scope</key> 837 + <string>constant.other.enum.java</string> 838 + <key>settings</key> 839 + <dict> 840 + <key>foreground</key> 841 + <string>#94e2d5</string> 842 + </dict> 843 + </dict> 844 + <dict> 845 + <key>name</key> 846 + <string>Java imports</string> 847 + <key>scope</key> 848 + <string>storage.modifier.import.java</string> 849 + <key>settings</key> 850 + <dict> 851 + <key>foreground</key> 852 + <string>#cdd6f4</string> 853 + </dict> 854 + </dict> 855 + <dict> 856 + <key>name</key> 857 + <string>Javadoc</string> 858 + <key>scope</key> 859 + <string>comment.block.javadoc.java keyword.other.documentation.javadoc.java</string> 860 + <key>settings</key> 861 + <dict> 862 + <key>fontStyle</key> 863 + <string/> 864 + </dict> 865 + </dict> 866 + <dict> 867 + <key>name</key> 868 + <string>Exported Variable</string> 869 + <key>scope</key> 870 + <string>meta.export variable.other.readwrite.js</string> 871 + <key>settings</key> 872 + <dict> 873 + <key>foreground</key> 874 + <string>#eba0ac</string> 875 + </dict> 876 + </dict> 877 + <dict> 878 + <key>name</key> 879 + <string>JS/TS constants &amp; properties</string> 880 + <key>scope</key> 881 + <string>variable.other.constant.js, variable.other.constant.ts, variable.other.property.js, variable.other.property.ts</string> 882 + <key>settings</key> 883 + <dict> 884 + <key>foreground</key> 885 + <string>#cdd6f4</string> 886 + </dict> 887 + </dict> 888 + <dict> 889 + <key>name</key> 890 + <string>JSDoc; these are mainly params, so styled as such</string> 891 + <key>scope</key> 892 + <string>variable.other.jsdoc, comment.block.documentation variable.other</string> 893 + <key>settings</key> 894 + <dict> 895 + <key>foreground</key> 896 + <string>#eba0ac</string> 897 + <key>fontStyle</key> 898 + <string/> 899 + </dict> 900 + </dict> 901 + <dict> 902 + <key>name</key> 903 + <string>JSDoc keywords</string> 904 + <key>scope</key> 905 + <string>storage.type.class.jsdoc</string> 906 + <key>settings</key> 907 + <dict> 908 + <key>fontStyle</key> 909 + <string/> 910 + </dict> 911 + </dict> 912 + <dict> 913 + <key>scope</key> 914 + <string>support.type.object.console.js</string> 915 + <key>settings</key> 916 + <dict> 917 + <key>foreground</key> 918 + <string>#cdd6f4</string> 919 + </dict> 920 + </dict> 921 + <dict> 922 + <key>name</key> 923 + <string>Node constants as keywords (module, etc.)</string> 924 + <key>scope</key> 925 + <string>support.constant.node, support.type.object.module.js</string> 926 + <key>settings</key> 927 + <dict> 928 + <key>foreground</key> 929 + <string>#cba6f7</string> 930 + </dict> 931 + </dict> 932 + <dict> 933 + <key>name</key> 934 + <string>implements as keyword</string> 935 + <key>scope</key> 936 + <string>storage.modifier.implements</string> 937 + <key>settings</key> 938 + <dict> 939 + <key>foreground</key> 940 + <string>#cba6f7</string> 941 + </dict> 942 + </dict> 943 + <dict> 944 + <key>name</key> 945 + <string>Builtin types</string> 946 + <key>scope</key> 947 + <string>constant.language.null.js, constant.language.null.ts, constant.language.undefined.js, constant.language.undefined.ts, support.type.builtin.ts</string> 948 + <key>settings</key> 949 + <dict> 950 + <key>foreground</key> 951 + <string>#cba6f7</string> 952 + </dict> 953 + </dict> 954 + <dict> 955 + <key>scope</key> 956 + <string>variable.parameter.generic</string> 957 + <key>settings</key> 958 + <dict> 959 + <key>foreground</key> 960 + <string>#f9e2af</string> 961 + </dict> 962 + </dict> 963 + <dict> 964 + <key>name</key> 965 + <string>Arrow functions</string> 966 + <key>scope</key> 967 + <string>keyword.declaration.function.arrow.js, storage.type.function.arrow.ts</string> 968 + <key>settings</key> 969 + <dict> 970 + <key>foreground</key> 971 + <string>#94e2d5</string> 972 + </dict> 973 + </dict> 974 + <dict> 975 + <key>name</key> 976 + <string>Decorator punctuations (decorators inherit from blue functions, instead of styleguide peach)</string> 977 + <key>scope</key> 978 + <string>punctuation.decorator.ts</string> 979 + <key>settings</key> 980 + <dict> 981 + <key>foreground</key> 982 + <string>#89b4fa</string> 983 + <key>fontStyle</key> 984 + <string>italic</string> 985 + </dict> 986 + </dict> 987 + <dict> 988 + <key>name</key> 989 + <string>Extra JS/TS keywords</string> 990 + <key>scope</key> 991 + <string>keyword.operator.expression.in.js, keyword.operator.expression.in.ts, keyword.operator.expression.infer.ts, keyword.operator.expression.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.is, keyword.operator.expression.keyof.ts, keyword.operator.expression.of.js, keyword.operator.expression.of.ts, keyword.operator.expression.typeof.ts</string> 992 + <key>settings</key> 993 + <dict> 994 + <key>foreground</key> 995 + <string>#cba6f7</string> 996 + </dict> 997 + </dict> 998 + <dict> 999 + <key>name</key> 1000 + <string>Julia macros</string> 1001 + <key>scope</key> 1002 + <string>support.function.macro.julia</string> 1003 + <key>settings</key> 1004 + <dict> 1005 + <key>foreground</key> 1006 + <string>#94e2d5</string> 1007 + <key>fontStyle</key> 1008 + <string>italic</string> 1009 + </dict> 1010 + </dict> 1011 + <dict> 1012 + <key>name</key> 1013 + <string>Julia language constants (true, false)</string> 1014 + <key>scope</key> 1015 + <string>constant.language.julia</string> 1016 + <key>settings</key> 1017 + <dict> 1018 + <key>foreground</key> 1019 + <string>#fab387</string> 1020 + </dict> 1021 + </dict> 1022 + <dict> 1023 + <key>name</key> 1024 + <string>Julia other constants (these seem to be arguments inside arrays)</string> 1025 + <key>scope</key> 1026 + <string>constant.other.symbol.julia</string> 1027 + <key>settings</key> 1028 + <dict> 1029 + <key>foreground</key> 1030 + <string>#eba0ac</string> 1031 + </dict> 1032 + </dict> 1033 + <dict> 1034 + <key>name</key> 1035 + <string>LaTeX preamble</string> 1036 + <key>scope</key> 1037 + <string>text.tex keyword.control.preamble</string> 1038 + <key>settings</key> 1039 + <dict> 1040 + <key>foreground</key> 1041 + <string>#94e2d5</string> 1042 + </dict> 1043 + </dict> 1044 + <dict> 1045 + <key>name</key> 1046 + <string>LaTeX be functions</string> 1047 + <key>scope</key> 1048 + <string>text.tex support.function.be</string> 1049 + <key>settings</key> 1050 + <dict> 1051 + <key>foreground</key> 1052 + <string>#89dceb</string> 1053 + </dict> 1054 + </dict> 1055 + <dict> 1056 + <key>name</key> 1057 + <string>LaTeX math</string> 1058 + <key>scope</key> 1059 + <string>constant.other.general.math.tex</string> 1060 + <key>settings</key> 1061 + <dict> 1062 + <key>foreground</key> 1063 + <string>#f2cdcd</string> 1064 + </dict> 1065 + </dict> 1066 + <dict> 1067 + <key>name</key> 1068 + <string>Lua docstring keywords</string> 1069 + <key>scope</key> 1070 + <string>comment.line.double-dash.documentation.lua storage.type.annotation.lua</string> 1071 + <key>settings</key> 1072 + <dict> 1073 + <key>foreground</key> 1074 + <string>#cba6f7</string> 1075 + <key>fontStyle</key> 1076 + <string/> 1077 + </dict> 1078 + </dict> 1079 + <dict> 1080 + <key>name</key> 1081 + <string>Lua docstring variables</string> 1082 + <key>scope</key> 1083 + <string>comment.line.double-dash.documentation.lua entity.name.variable.lua, comment.line.double-dash.documentation.lua variable.lua</string> 1084 + <key>settings</key> 1085 + <dict> 1086 + <key>foreground</key> 1087 + <string>#cdd6f4</string> 1088 + </dict> 1089 + </dict> 1090 + <dict> 1091 + <key>scope</key> 1092 + <string>heading.1.markdown punctuation.definition.heading.markdown, heading.1.markdown, markup.heading.atx.1.mdx, markup.heading.atx.1.mdx punctuation.definition.heading.mdx, markup.heading.setext.1.markdown, markup.heading.heading-0.asciidoc</string> 1093 + <key>settings</key> 1094 + <dict> 1095 + <key>foreground</key> 1096 + <string>#f38ba8</string> 1097 + </dict> 1098 + </dict> 1099 + <dict> 1100 + <key>scope</key> 1101 + <string>heading.2.markdown punctuation.definition.heading.markdown, heading.2.markdown, markup.heading.atx.2.mdx, markup.heading.atx.2.mdx punctuation.definition.heading.mdx, markup.heading.setext.2.markdown, markup.heading.heading-1.asciidoc</string> 1102 + <key>settings</key> 1103 + <dict> 1104 + <key>foreground</key> 1105 + <string>#fab387</string> 1106 + </dict> 1107 + </dict> 1108 + <dict> 1109 + <key>scope</key> 1110 + <string>heading.3.markdown punctuation.definition.heading.markdown, heading.3.markdown, markup.heading.atx.3.mdx, markup.heading.atx.3.mdx punctuation.definition.heading.mdx, markup.heading.heading-2.asciidoc</string> 1111 + <key>settings</key> 1112 + <dict> 1113 + <key>foreground</key> 1114 + <string>#f9e2af</string> 1115 + </dict> 1116 + </dict> 1117 + <dict> 1118 + <key>scope</key> 1119 + <string>heading.4.markdown punctuation.definition.heading.markdown, heading.4.markdown, markup.heading.atx.4.mdx, markup.heading.atx.4.mdx punctuation.definition.heading.mdx, markup.heading.heading-3.asciidoc</string> 1120 + <key>settings</key> 1121 + <dict> 1122 + <key>foreground</key> 1123 + <string>#a6e3a1</string> 1124 + </dict> 1125 + </dict> 1126 + <dict> 1127 + <key>scope</key> 1128 + <string>heading.5.markdown punctuation.definition.heading.markdown, heading.5.markdown, markup.heading.atx.5.mdx, markup.heading.atx.5.mdx punctuation.definition.heading.mdx, markup.heading.heading-4.asciidoc</string> 1129 + <key>settings</key> 1130 + <dict> 1131 + <key>foreground</key> 1132 + <string>#89b4fa</string> 1133 + </dict> 1134 + </dict> 1135 + <dict> 1136 + <key>scope</key> 1137 + <string>heading.6.markdown punctuation.definition.heading.markdown, heading.6.markdown, markup.heading.atx.6.mdx, markup.heading.atx.6.mdx punctuation.definition.heading.mdx, markup.heading.heading-5.asciidoc</string> 1138 + <key>settings</key> 1139 + <dict> 1140 + <key>foreground</key> 1141 + <string>#cba6f7</string> 1142 + </dict> 1143 + </dict> 1144 + <dict> 1145 + <key>scope</key> 1146 + <string>markup.bold</string> 1147 + <key>settings</key> 1148 + <dict> 1149 + <key>foreground</key> 1150 + <string>#f38ba8</string> 1151 + <key>fontStyle</key> 1152 + <string>bold</string> 1153 + </dict> 1154 + </dict> 1155 + <dict> 1156 + <key>scope</key> 1157 + <string>markup.italic</string> 1158 + <key>settings</key> 1159 + <dict> 1160 + <key>foreground</key> 1161 + <string>#f38ba8</string> 1162 + <key>fontStyle</key> 1163 + <string>italic</string> 1164 + </dict> 1165 + </dict> 1166 + <dict> 1167 + <key>scope</key> 1168 + <string>markup.strikethrough</string> 1169 + <key>settings</key> 1170 + <dict> 1171 + <key>foreground</key> 1172 + <string>#a6adc8</string> 1173 + <key>fontStyle</key> 1174 + <string>strikethrough</string> 1175 + </dict> 1176 + </dict> 1177 + <dict> 1178 + <key>name</key> 1179 + <string>Markdown auto links</string> 1180 + <key>scope</key> 1181 + <string>punctuation.definition.link, markup.underline.link</string> 1182 + <key>settings</key> 1183 + <dict> 1184 + <key>foreground</key> 1185 + <string>#89b4fa</string> 1186 + </dict> 1187 + </dict> 1188 + <dict> 1189 + <key>name</key> 1190 + <string>Markdown links</string> 1191 + <key>scope</key> 1192 + <string>text.html.markdown punctuation.definition.link.title, string.other.link.title.markdown, markup.link, punctuation.definition.constant.markdown, constant.other.reference.link.markdown, markup.substitution.attribute-reference</string> 1193 + <key>settings</key> 1194 + <dict> 1195 + <key>foreground</key> 1196 + <string>#b4befe</string> 1197 + </dict> 1198 + </dict> 1199 + <dict> 1200 + <key>name</key> 1201 + <string>Markdown code spans</string> 1202 + <key>scope</key> 1203 + <string>punctuation.definition.raw.markdown, markup.inline.raw.string.markdown, markup.raw.block.markdown</string> 1204 + <key>settings</key> 1205 + <dict> 1206 + <key>foreground</key> 1207 + <string>#a6e3a1</string> 1208 + </dict> 1209 + </dict> 1210 + <dict> 1211 + <key>name</key> 1212 + <string>Markdown triple backtick language identifier</string> 1213 + <key>scope</key> 1214 + <string>fenced_code.block.language</string> 1215 + <key>settings</key> 1216 + <dict> 1217 + <key>foreground</key> 1218 + <string>#89dceb</string> 1219 + </dict> 1220 + </dict> 1221 + <dict> 1222 + <key>name</key> 1223 + <string>Markdown triple backticks</string> 1224 + <key>scope</key> 1225 + <string>markup.fenced_code.block punctuation.definition, markup.raw support.asciidoc</string> 1226 + <key>settings</key> 1227 + <dict> 1228 + <key>foreground</key> 1229 + <string>#9399b2</string> 1230 + </dict> 1231 + </dict> 1232 + <dict> 1233 + <key>name</key> 1234 + <string>Markdown quotes</string> 1235 + <key>scope</key> 1236 + <string>markup.quote, punctuation.definition.quote.begin</string> 1237 + <key>settings</key> 1238 + <dict> 1239 + <key>foreground</key> 1240 + <string>#f5c2e7</string> 1241 + </dict> 1242 + </dict> 1243 + <dict> 1244 + <key>name</key> 1245 + <string>Markdown separators</string> 1246 + <key>scope</key> 1247 + <string>meta.separator.markdown</string> 1248 + <key>settings</key> 1249 + <dict> 1250 + <key>foreground</key> 1251 + <string>#94e2d5</string> 1252 + </dict> 1253 + </dict> 1254 + <dict> 1255 + <key>name</key> 1256 + <string>Markdown list bullets</string> 1257 + <key>scope</key> 1258 + <string>punctuation.definition.list.begin.markdown, markup.list.bullet</string> 1259 + <key>settings</key> 1260 + <dict> 1261 + <key>foreground</key> 1262 + <string>#94e2d5</string> 1263 + </dict> 1264 + </dict> 1265 + <dict> 1266 + <key>name</key> 1267 + <string>Nix attribute names</string> 1268 + <key>scope</key> 1269 + <string>entity.other.attribute-name.multipart.nix, entity.other.attribute-name.single.nix</string> 1270 + <key>settings</key> 1271 + <dict> 1272 + <key>foreground</key> 1273 + <string>#89b4fa</string> 1274 + </dict> 1275 + </dict> 1276 + <dict> 1277 + <key>name</key> 1278 + <string>Nix parameter names</string> 1279 + <key>scope</key> 1280 + <string>variable.parameter.name.nix</string> 1281 + <key>settings</key> 1282 + <dict> 1283 + <key>foreground</key> 1284 + <string>#cdd6f4</string> 1285 + <key>fontStyle</key> 1286 + <string/> 1287 + </dict> 1288 + </dict> 1289 + <dict> 1290 + <key>name</key> 1291 + <string>Nix interpolated parameter names</string> 1292 + <key>scope</key> 1293 + <string>meta.embedded variable.parameter.name.nix</string> 1294 + <key>settings</key> 1295 + <dict> 1296 + <key>foreground</key> 1297 + <string>#b4befe</string> 1298 + <key>fontStyle</key> 1299 + <string/> 1300 + </dict> 1301 + </dict> 1302 + <dict> 1303 + <key>name</key> 1304 + <string>Nix paths</string> 1305 + <key>scope</key> 1306 + <string>string.unquoted.path.nix</string> 1307 + <key>settings</key> 1308 + <dict> 1309 + <key>foreground</key> 1310 + <string>#f5c2e7</string> 1311 + <key>fontStyle</key> 1312 + <string/> 1313 + </dict> 1314 + </dict> 1315 + <dict> 1316 + <key>name</key> 1317 + <string>PHP Attributes</string> 1318 + <key>scope</key> 1319 + <string>support.attribute.builtin, meta.attribute.php</string> 1320 + <key>settings</key> 1321 + <dict> 1322 + <key>foreground</key> 1323 + <string>#f9e2af</string> 1324 + </dict> 1325 + </dict> 1326 + <dict> 1327 + <key>name</key> 1328 + <string>PHP Parameters (needed for the leading dollar sign)</string> 1329 + <key>scope</key> 1330 + <string>meta.function.parameters.php punctuation.definition.variable.php</string> 1331 + <key>settings</key> 1332 + <dict> 1333 + <key>foreground</key> 1334 + <string>#eba0ac</string> 1335 + </dict> 1336 + </dict> 1337 + <dict> 1338 + <key>name</key> 1339 + <string>PHP Constants (null, __FILE__, etc.)</string> 1340 + <key>scope</key> 1341 + <string>constant.language.php</string> 1342 + <key>settings</key> 1343 + <dict> 1344 + <key>foreground</key> 1345 + <string>#cba6f7</string> 1346 + </dict> 1347 + </dict> 1348 + <dict> 1349 + <key>name</key> 1350 + <string>PHP functions</string> 1351 + <key>scope</key> 1352 + <string>text.html.php support.function</string> 1353 + <key>settings</key> 1354 + <dict> 1355 + <key>foreground</key> 1356 + <string>#89dceb</string> 1357 + </dict> 1358 + </dict> 1359 + <dict> 1360 + <key>name</key> 1361 + <string>PHPdoc keywords</string> 1362 + <key>scope</key> 1363 + <string>keyword.other.phpdoc.php</string> 1364 + <key>settings</key> 1365 + <dict> 1366 + <key>fontStyle</key> 1367 + <string/> 1368 + </dict> 1369 + </dict> 1370 + <dict> 1371 + <key>name</key> 1372 + <string>Python argument functions reset to text, otherwise they inherit blue from function-call</string> 1373 + <key>scope</key> 1374 + <string>support.variable.magic.python, meta.function-call.arguments.python</string> 1375 + <key>settings</key> 1376 + <dict> 1377 + <key>foreground</key> 1378 + <string>#cdd6f4</string> 1379 + </dict> 1380 + </dict> 1381 + <dict> 1382 + <key>name</key> 1383 + <string>Python double underscore functions</string> 1384 + <key>scope</key> 1385 + <string>support.function.magic.python</string> 1386 + <key>settings</key> 1387 + <dict> 1388 + <key>foreground</key> 1389 + <string>#89dceb</string> 1390 + <key>fontStyle</key> 1391 + <string>italic</string> 1392 + </dict> 1393 + </dict> 1394 + <dict> 1395 + <key>name</key> 1396 + <string>Python `self` keyword</string> 1397 + <key>scope</key> 1398 + <string>variable.parameter.function.language.special.self.python, variable.language.special.self.python</string> 1399 + <key>settings</key> 1400 + <dict> 1401 + <key>foreground</key> 1402 + <string>#f38ba8</string> 1403 + <key>fontStyle</key> 1404 + <string>italic</string> 1405 + </dict> 1406 + </dict> 1407 + <dict> 1408 + <key>name</key> 1409 + <string>python keyword flow/logical (for ... in)</string> 1410 + <key>scope</key> 1411 + <string>keyword.control.flow.python, keyword.operator.logical.python</string> 1412 + <key>settings</key> 1413 + <dict> 1414 + <key>foreground</key> 1415 + <string>#cba6f7</string> 1416 + </dict> 1417 + </dict> 1418 + <dict> 1419 + <key>name</key> 1420 + <string>python storage type</string> 1421 + <key>scope</key> 1422 + <string>storage.type.function.python</string> 1423 + <key>settings</key> 1424 + <dict> 1425 + <key>foreground</key> 1426 + <string>#cba6f7</string> 1427 + </dict> 1428 + </dict> 1429 + <dict> 1430 + <key>name</key> 1431 + <string>python function support</string> 1432 + <key>scope</key> 1433 + <string>support.token.decorator.python, meta.function.decorator.identifier.python</string> 1434 + <key>settings</key> 1435 + <dict> 1436 + <key>foreground</key> 1437 + <string>#89dceb</string> 1438 + </dict> 1439 + </dict> 1440 + <dict> 1441 + <key>name</key> 1442 + <string>python function calls</string> 1443 + <key>scope</key> 1444 + <string>meta.function-call.python</string> 1445 + <key>settings</key> 1446 + <dict> 1447 + <key>foreground</key> 1448 + <string>#89b4fa</string> 1449 + </dict> 1450 + </dict> 1451 + <dict> 1452 + <key>name</key> 1453 + <string>python function decorators</string> 1454 + <key>scope</key> 1455 + <string>entity.name.function.decorator.python, punctuation.definition.decorator.python</string> 1456 + <key>settings</key> 1457 + <dict> 1458 + <key>foreground</key> 1459 + <string>#fab387</string> 1460 + <key>fontStyle</key> 1461 + <string>italic</string> 1462 + </dict> 1463 + </dict> 1464 + <dict> 1465 + <key>name</key> 1466 + <string>python placeholder reset to normal string</string> 1467 + <key>scope</key> 1468 + <string>constant.character.format.placeholder.other.python</string> 1469 + <key>settings</key> 1470 + <dict> 1471 + <key>foreground</key> 1472 + <string>#f5c2e7</string> 1473 + </dict> 1474 + </dict> 1475 + <dict> 1476 + <key>name</key> 1477 + <string>Python exception &amp; builtins such as exit()</string> 1478 + <key>scope</key> 1479 + <string>support.type.exception.python, support.function.builtin.python</string> 1480 + <key>settings</key> 1481 + <dict> 1482 + <key>foreground</key> 1483 + <string>#fab387</string> 1484 + </dict> 1485 + </dict> 1486 + <dict> 1487 + <key>name</key> 1488 + <string>entity.name.type</string> 1489 + <key>scope</key> 1490 + <string>support.type.python</string> 1491 + <key>settings</key> 1492 + <dict> 1493 + <key>foreground</key> 1494 + <string>#fab387</string> 1495 + </dict> 1496 + </dict> 1497 + <dict> 1498 + <key>name</key> 1499 + <string>python constants (True/False)</string> 1500 + <key>scope</key> 1501 + <string>constant.language.python</string> 1502 + <key>settings</key> 1503 + <dict> 1504 + <key>foreground</key> 1505 + <string>#cba6f7</string> 1506 + </dict> 1507 + </dict> 1508 + <dict> 1509 + <key>name</key> 1510 + <string>Arguments accessed later in the function body</string> 1511 + <key>scope</key> 1512 + <string>meta.indexed-name.python, meta.item-access.python</string> 1513 + <key>settings</key> 1514 + <dict> 1515 + <key>foreground</key> 1516 + <string>#eba0ac</string> 1517 + <key>fontStyle</key> 1518 + <string>italic</string> 1519 + </dict> 1520 + </dict> 1521 + <dict> 1522 + <key>name</key> 1523 + <string>Python f-strings/binary/unicode storage types</string> 1524 + <key>scope</key> 1525 + <string>storage.type.string.python</string> 1526 + <key>settings</key> 1527 + <dict> 1528 + <key>foreground</key> 1529 + <string>#a6e3a1</string> 1530 + <key>fontStyle</key> 1531 + <string>italic</string> 1532 + </dict> 1533 + </dict> 1534 + <dict> 1535 + <key>name</key> 1536 + <string>Python type hints</string> 1537 + <key>scope</key> 1538 + <string>meta.function.parameters.python</string> 1539 + <key>settings</key> 1540 + <dict> 1541 + <key>fontStyle</key> 1542 + <string/> 1543 + </dict> 1544 + </dict> 1545 + <dict> 1546 + <key>name</key> 1547 + <string>Regex string begin/end in JS/TS</string> 1548 + <key>scope</key> 1549 + <string>string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end</string> 1550 + <key>settings</key> 1551 + <dict> 1552 + <key>foreground</key> 1553 + <string>#f5c2e7</string> 1554 + </dict> 1555 + </dict> 1556 + <dict> 1557 + <key>name</key> 1558 + <string>Regex anchors (^, $)</string> 1559 + <key>scope</key> 1560 + <string>keyword.control.anchor.regexp</string> 1561 + <key>settings</key> 1562 + <dict> 1563 + <key>foreground</key> 1564 + <string>#cba6f7</string> 1565 + </dict> 1566 + </dict> 1567 + <dict> 1568 + <key>name</key> 1569 + <string>Regex regular string match</string> 1570 + <key>scope</key> 1571 + <string>string.regexp.ts</string> 1572 + <key>settings</key> 1573 + <dict> 1574 + <key>foreground</key> 1575 + <string>#cdd6f4</string> 1576 + </dict> 1577 + </dict> 1578 + <dict> 1579 + <key>name</key> 1580 + <string>Regex group parenthesis &amp; backreference (\1, \2, \3, ...)</string> 1581 + <key>scope</key> 1582 + <string>punctuation.definition.group.regexp, keyword.other.back-reference.regexp</string> 1583 + <key>settings</key> 1584 + <dict> 1585 + <key>foreground</key> 1586 + <string>#a6e3a1</string> 1587 + </dict> 1588 + </dict> 1589 + <dict> 1590 + <key>name</key> 1591 + <string>Regex character class []</string> 1592 + <key>scope</key> 1593 + <string>punctuation.definition.character-class.regexp</string> 1594 + <key>settings</key> 1595 + <dict> 1596 + <key>foreground</key> 1597 + <string>#f9e2af</string> 1598 + </dict> 1599 + </dict> 1600 + <dict> 1601 + <key>name</key> 1602 + <string>Regex character classes (\d, \w, \s)</string> 1603 + <key>scope</key> 1604 + <string>constant.other.character-class.regexp</string> 1605 + <key>settings</key> 1606 + <dict> 1607 + <key>foreground</key> 1608 + <string>#f5c2e7</string> 1609 + </dict> 1610 + </dict> 1611 + <dict> 1612 + <key>name</key> 1613 + <string>Regex range</string> 1614 + <key>scope</key> 1615 + <string>constant.other.character-class.range.regexp</string> 1616 + <key>settings</key> 1617 + <dict> 1618 + <key>foreground</key> 1619 + <string>#f5e0dc</string> 1620 + </dict> 1621 + </dict> 1622 + <dict> 1623 + <key>name</key> 1624 + <string>Regex quantifier</string> 1625 + <key>scope</key> 1626 + <string>keyword.operator.quantifier.regexp</string> 1627 + <key>settings</key> 1628 + <dict> 1629 + <key>foreground</key> 1630 + <string>#94e2d5</string> 1631 + </dict> 1632 + </dict> 1633 + <dict> 1634 + <key>name</key> 1635 + <string>Regex constant/numeric</string> 1636 + <key>scope</key> 1637 + <string>constant.character.numeric.regexp</string> 1638 + <key>settings</key> 1639 + <dict> 1640 + <key>foreground</key> 1641 + <string>#fab387</string> 1642 + </dict> 1643 + </dict> 1644 + <dict> 1645 + <key>name</key> 1646 + <string>Regex lookaheads, negative lookaheads, lookbehinds, negative lookbehinds</string> 1647 + <key>scope</key> 1648 + <string>punctuation.definition.group.no-capture.regexp, meta.assertion.look-ahead.regexp, meta.assertion.negative-look-ahead.regexp</string> 1649 + <key>settings</key> 1650 + <dict> 1651 + <key>foreground</key> 1652 + <string>#89b4fa</string> 1653 + </dict> 1654 + </dict> 1655 + <dict> 1656 + <key>name</key> 1657 + <string>Rust attribute</string> 1658 + <key>scope</key> 1659 + <string>meta.annotation.rust, meta.annotation.rust punctuation, meta.attribute.rust, punctuation.definition.attribute.rust</string> 1660 + <key>settings</key> 1661 + <dict> 1662 + <key>foreground</key> 1663 + <string>#f9e2af</string> 1664 + <key>fontStyle</key> 1665 + <string>italic</string> 1666 + </dict> 1667 + </dict> 1668 + <dict> 1669 + <key>name</key> 1670 + <string>Rust attribute strings</string> 1671 + <key>scope</key> 1672 + <string>meta.attribute.rust string.quoted.double.rust, meta.attribute.rust string.quoted.single.char.rust</string> 1673 + <key>settings</key> 1674 + <dict> 1675 + <key>fontStyle</key> 1676 + <string/> 1677 + </dict> 1678 + </dict> 1679 + <dict> 1680 + <key>name</key> 1681 + <string>Rust keyword</string> 1682 + <key>scope</key> 1683 + <string>entity.name.function.macro.rules.rust, storage.type.module.rust, storage.modifier.rust, storage.type.struct.rust, storage.type.enum.rust, storage.type.trait.rust, storage.type.union.rust, storage.type.impl.rust, storage.type.rust, storage.type.function.rust, storage.type.type.rust</string> 1684 + <key>settings</key> 1685 + <dict> 1686 + <key>foreground</key> 1687 + <string>#cba6f7</string> 1688 + <key>fontStyle</key> 1689 + <string/> 1690 + </dict> 1691 + </dict> 1692 + <dict> 1693 + <key>name</key> 1694 + <string>Rust u/i32, u/i64, etc.</string> 1695 + <key>scope</key> 1696 + <string>entity.name.type.numeric.rust</string> 1697 + <key>settings</key> 1698 + <dict> 1699 + <key>foreground</key> 1700 + <string>#cba6f7</string> 1701 + <key>fontStyle</key> 1702 + <string/> 1703 + </dict> 1704 + </dict> 1705 + <dict> 1706 + <key>name</key> 1707 + <string>Rust generic</string> 1708 + <key>scope</key> 1709 + <string>meta.generic.rust</string> 1710 + <key>settings</key> 1711 + <dict> 1712 + <key>foreground</key> 1713 + <string>#fab387</string> 1714 + </dict> 1715 + </dict> 1716 + <dict> 1717 + <key>name</key> 1718 + <string>Rust impl</string> 1719 + <key>scope</key> 1720 + <string>entity.name.impl.rust</string> 1721 + <key>settings</key> 1722 + <dict> 1723 + <key>foreground</key> 1724 + <string>#f9e2af</string> 1725 + <key>fontStyle</key> 1726 + <string>italic</string> 1727 + </dict> 1728 + </dict> 1729 + <dict> 1730 + <key>name</key> 1731 + <string>Rust module</string> 1732 + <key>scope</key> 1733 + <string>entity.name.module.rust</string> 1734 + <key>settings</key> 1735 + <dict> 1736 + <key>foreground</key> 1737 + <string>#fab387</string> 1738 + </dict> 1739 + </dict> 1740 + <dict> 1741 + <key>name</key> 1742 + <string>Rust trait</string> 1743 + <key>scope</key> 1744 + <string>entity.name.trait.rust</string> 1745 + <key>settings</key> 1746 + <dict> 1747 + <key>foreground</key> 1748 + <string>#f9e2af</string> 1749 + <key>fontStyle</key> 1750 + <string>italic</string> 1751 + </dict> 1752 + </dict> 1753 + <dict> 1754 + <key>name</key> 1755 + <string>Rust struct</string> 1756 + <key>scope</key> 1757 + <string>storage.type.source.rust</string> 1758 + <key>settings</key> 1759 + <dict> 1760 + <key>foreground</key> 1761 + <string>#f9e2af</string> 1762 + </dict> 1763 + </dict> 1764 + <dict> 1765 + <key>name</key> 1766 + <string>Rust union</string> 1767 + <key>scope</key> 1768 + <string>entity.name.union.rust</string> 1769 + <key>settings</key> 1770 + <dict> 1771 + <key>foreground</key> 1772 + <string>#f9e2af</string> 1773 + </dict> 1774 + </dict> 1775 + <dict> 1776 + <key>name</key> 1777 + <string>Rust enum member</string> 1778 + <key>scope</key> 1779 + <string>meta.enum.rust storage.type.source.rust</string> 1780 + <key>settings</key> 1781 + <dict> 1782 + <key>foreground</key> 1783 + <string>#94e2d5</string> 1784 + </dict> 1785 + </dict> 1786 + <dict> 1787 + <key>name</key> 1788 + <string>Rust macro</string> 1789 + <key>scope</key> 1790 + <string>support.macro.rust, meta.macro.rust support.function.rust, entity.name.function.macro.rust</string> 1791 + <key>settings</key> 1792 + <dict> 1793 + <key>foreground</key> 1794 + <string>#89b4fa</string> 1795 + <key>fontStyle</key> 1796 + <string>italic</string> 1797 + </dict> 1798 + </dict> 1799 + <dict> 1800 + <key>name</key> 1801 + <string>Rust lifetime</string> 1802 + <key>scope</key> 1803 + <string>storage.modifier.lifetime.rust, entity.name.type.lifetime</string> 1804 + <key>settings</key> 1805 + <dict> 1806 + <key>foreground</key> 1807 + <string>#89b4fa</string> 1808 + <key>fontStyle</key> 1809 + <string>italic</string> 1810 + </dict> 1811 + </dict> 1812 + <dict> 1813 + <key>name</key> 1814 + <string>Rust string formatting</string> 1815 + <key>scope</key> 1816 + <string>string.quoted.double.rust constant.other.placeholder.rust</string> 1817 + <key>settings</key> 1818 + <dict> 1819 + <key>foreground</key> 1820 + <string>#f5c2e7</string> 1821 + </dict> 1822 + </dict> 1823 + <dict> 1824 + <key>name</key> 1825 + <string>Rust return type generic</string> 1826 + <key>scope</key> 1827 + <string>meta.function.return-type.rust meta.generic.rust storage.type.rust</string> 1828 + <key>settings</key> 1829 + <dict> 1830 + <key>foreground</key> 1831 + <string>#cdd6f4</string> 1832 + </dict> 1833 + </dict> 1834 + <dict> 1835 + <key>name</key> 1836 + <string>Rust functions</string> 1837 + <key>scope</key> 1838 + <string>meta.function.call.rust</string> 1839 + <key>settings</key> 1840 + <dict> 1841 + <key>foreground</key> 1842 + <string>#89b4fa</string> 1843 + </dict> 1844 + </dict> 1845 + <dict> 1846 + <key>name</key> 1847 + <string>Rust angle brackets</string> 1848 + <key>scope</key> 1849 + <string>punctuation.brackets.angle.rust</string> 1850 + <key>settings</key> 1851 + <dict> 1852 + <key>foreground</key> 1853 + <string>#89dceb</string> 1854 + </dict> 1855 + </dict> 1856 + <dict> 1857 + <key>name</key> 1858 + <string>Rust constants</string> 1859 + <key>scope</key> 1860 + <string>constant.other.caps.rust</string> 1861 + <key>settings</key> 1862 + <dict> 1863 + <key>foreground</key> 1864 + <string>#fab387</string> 1865 + </dict> 1866 + </dict> 1867 + <dict> 1868 + <key>name</key> 1869 + <string>Rust function parameters</string> 1870 + <key>scope</key> 1871 + <string>meta.function.definition.rust variable.other.rust</string> 1872 + <key>settings</key> 1873 + <dict> 1874 + <key>foreground</key> 1875 + <string>#eba0ac</string> 1876 + </dict> 1877 + </dict> 1878 + <dict> 1879 + <key>name</key> 1880 + <string>Rust closure variables</string> 1881 + <key>scope</key> 1882 + <string>meta.function.call.rust variable.other.rust</string> 1883 + <key>settings</key> 1884 + <dict> 1885 + <key>foreground</key> 1886 + <string>#cdd6f4</string> 1887 + </dict> 1888 + </dict> 1889 + <dict> 1890 + <key>name</key> 1891 + <string>Rust self</string> 1892 + <key>scope</key> 1893 + <string>variable.language.self.rust</string> 1894 + <key>settings</key> 1895 + <dict> 1896 + <key>foreground</key> 1897 + <string>#f38ba8</string> 1898 + </dict> 1899 + </dict> 1900 + <dict> 1901 + <key>name</key> 1902 + <string>Rust metavariable names</string> 1903 + <key>scope</key> 1904 + <string>variable.other.metavariable.name.rust, meta.macro.metavariable.rust keyword.operator.macro.dollar.rust</string> 1905 + <key>settings</key> 1906 + <dict> 1907 + <key>foreground</key> 1908 + <string>#f5c2e7</string> 1909 + </dict> 1910 + </dict> 1911 + <dict> 1912 + <key>name</key> 1913 + <string>Shell shebang</string> 1914 + <key>scope</key> 1915 + <string>comment.line.shebang, comment.line.shebang punctuation.definition.comment, comment.line.shebang, punctuation.definition.comment.shebang.shell, meta.shebang.shell</string> 1916 + <key>settings</key> 1917 + <dict> 1918 + <key>foreground</key> 1919 + <string>#f5c2e7</string> 1920 + <key>fontStyle</key> 1921 + <string>italic</string> 1922 + </dict> 1923 + </dict> 1924 + <dict> 1925 + <key>name</key> 1926 + <string>Shell shebang command</string> 1927 + <key>scope</key> 1928 + <string>comment.line.shebang constant.language</string> 1929 + <key>settings</key> 1930 + <dict> 1931 + <key>foreground</key> 1932 + <string>#94e2d5</string> 1933 + <key>fontStyle</key> 1934 + <string>italic</string> 1935 + </dict> 1936 + </dict> 1937 + <dict> 1938 + <key>name</key> 1939 + <string>Shell interpolated command</string> 1940 + <key>scope</key> 1941 + <string>meta.function-call.arguments.shell punctuation.definition.variable.shell, meta.function-call.arguments.shell punctuation.section.interpolation, meta.function-call.arguments.shell punctuation.definition.variable.shell, meta.function-call.arguments.shell punctuation.section.interpolation</string> 1942 + <key>settings</key> 1943 + <dict> 1944 + <key>foreground</key> 1945 + <string>#f38ba8</string> 1946 + </dict> 1947 + </dict> 1948 + <dict> 1949 + <key>name</key> 1950 + <string>Shell interpolated command variable</string> 1951 + <key>scope</key> 1952 + <string>meta.string meta.interpolation.parameter.shell variable.other.readwrite</string> 1953 + <key>settings</key> 1954 + <dict> 1955 + <key>foreground</key> 1956 + <string>#fab387</string> 1957 + <key>fontStyle</key> 1958 + <string>italic</string> 1959 + </dict> 1960 + </dict> 1961 + <dict> 1962 + <key>scope</key> 1963 + <string>source.shell punctuation.section.interpolation, punctuation.definition.evaluation.backticks.shell</string> 1964 + <key>settings</key> 1965 + <dict> 1966 + <key>foreground</key> 1967 + <string>#94e2d5</string> 1968 + </dict> 1969 + </dict> 1970 + <dict> 1971 + <key>name</key> 1972 + <string>Shell EOF</string> 1973 + <key>scope</key> 1974 + <string>entity.name.tag.heredoc.shell</string> 1975 + <key>settings</key> 1976 + <dict> 1977 + <key>foreground</key> 1978 + <string>#cba6f7</string> 1979 + </dict> 1980 + </dict> 1981 + <dict> 1982 + <key>name</key> 1983 + <string>Shell quoted variable</string> 1984 + <key>scope</key> 1985 + <string>string.quoted.double.shell variable.other.normal.shell</string> 1986 + <key>settings</key> 1987 + <dict> 1988 + <key>foreground</key> 1989 + <string>#cdd6f4</string> 1990 + </dict> 1991 + </dict> 1992 + <dict> 1993 + <key>scope</key> 1994 + <string>markup.heading.synopsis.man, markup.heading.title.man, markup.heading.other.man, markup.heading.env.man</string> 1995 + <key>settings</key> 1996 + <dict> 1997 + <key>foreground</key> 1998 + <string>#cba6f7</string> 1999 + </dict> 2000 + </dict> 2001 + <dict> 2002 + <key>scope</key> 2003 + <string>markup.heading.commands.man</string> 2004 + <key>settings</key> 2005 + <dict> 2006 + <key>foreground</key> 2007 + <string>#89b4fa</string> 2008 + </dict> 2009 + </dict> 2010 + <dict> 2011 + <key>scope</key> 2012 + <string>markup.heading.env.man</string> 2013 + <key>settings</key> 2014 + <dict> 2015 + <key>foreground</key> 2016 + <string>#f5c2e7</string> 2017 + </dict> 2018 + </dict> 2019 + <dict> 2020 + <key>name</key> 2021 + <string>Man page options</string> 2022 + <key>scope</key> 2023 + <string>entity.name</string> 2024 + <key>settings</key> 2025 + <dict> 2026 + <key>foreground</key> 2027 + <string>#94e2d5</string> 2028 + </dict> 2029 + </dict> 2030 + <dict> 2031 + <key>scope</key> 2032 + <string>markup.heading.1.markdown</string> 2033 + <key>settings</key> 2034 + <dict> 2035 + <key>foreground</key> 2036 + <string>#f38ba8</string> 2037 + </dict> 2038 + </dict> 2039 + <dict> 2040 + <key>scope</key> 2041 + <string>markup.heading.2.markdown</string> 2042 + <key>settings</key> 2043 + <dict> 2044 + <key>foreground</key> 2045 + <string>#fab387</string> 2046 + </dict> 2047 + </dict> 2048 + <dict> 2049 + <key>scope</key> 2050 + <string>markup.heading.markdown</string> 2051 + <key>settings</key> 2052 + <dict> 2053 + <key>foreground</key> 2054 + <string>#f9e2af</string> 2055 + </dict> 2056 + </dict> 2057 + </array> 2058 + </dict> 2059 + </plist>
+108
comlink/init.lua
··· 1 + local comlink = require('comlink') 2 + local watcher = require('watcher') 3 + 4 + local function run_command_and_trim(command) 5 + -- Execute the command and capture output 6 + local handle = io.popen(command) 7 + assert(handle, "Failed to execute command") 8 + 9 + -- Read the output 10 + local result = handle:read("*a") 11 + local success, exit_type, exit_code = handle:close() 12 + 13 + -- Check if command executed successfully 14 + assert(success, "Command failed with exit code: " .. (exit_code or "unknown")) 15 + 16 + -- Trim whitespace (including newlines) 17 + if result then 18 + result = result:match("^%s*(.-)%s*$") 19 + end 20 + 21 + return result 22 + end 23 + 24 + local config = { 25 + server = 'chat.sr.ht', 26 + user = 'reykjalin', 27 + nick = 'reykjalin', 28 + password = run_command_and_trim('op read "op://Private/chat.sr.ht app password/password"'), 29 + tls = true, 30 + real_name = 'Kristófer Reykjalín', 31 + } 32 + 33 + -- Set channel watch config to receive notifications on any message in the provided channels. 34 + local connection = comlink.connect(config) 35 + connection.on_message = watcher.on_message 36 + 37 + watcher.channels = { 38 + "#comlink", 39 + "#ghostty", 40 + "#vaxis", 41 + } 42 + 43 + -- Keybindings. 44 + comlink.bind("ctrl+c", "quit") 45 + comlink.bind("ctrl+n", "next-channel") 46 + comlink.bind("ctrl+j", "next-channel") 47 + comlink.bind("ctrl+p", "prev-channel") 48 + comlink.bind("ctrl+l", "redraw") 49 + 50 + local function mark_read(_) 51 + local maybe_channel = comlink.selected_channel() 52 + if maybe_channel then 53 + maybe_channel:mark_read() 54 + end 55 + end 56 + comlink.bind("ctrl+r", mark_read) 57 + 58 + -- /tableflip and /shrug. 59 + local function tableflip(_) 60 + local channel = comlink.selected_channel() 61 + if channel then 62 + channel:send_msg("(╯°□°)╯︵ ┻━┻") 63 + end 64 + end 65 + 66 + local function shrug(_) 67 + local channel = comlink.selected_channel() 68 + if channel then 69 + channel:send_msg("¯\\_(ツ)_/¯") 70 + end 71 + end 72 + 73 + comlink.add_command("tableflip", tableflip) 74 + comlink.add_command("shrug", shrug) 75 + 76 + -- /fmt <text>. 77 + local function replace(string, old, new) 78 + local s = string 79 + local search_start_idx = 1 80 + 81 + while true do 82 + local start_idx, end_idx = s:find(old, search_start_idx, true) 83 + if not start_idx then 84 + break 85 + end 86 + 87 + local postfix = s:sub(end_idx + 1) 88 + s = s:sub(1, (start_idx - 1)) .. new .. postfix 89 + 90 + search_start_idx = -1 * postfix:len() 91 + end 92 + 93 + return s 94 + end 95 + 96 + local function format(cmdline) 97 + local channel = comlink.selected_channel() 98 + if channel then 99 + local s = replace(cmdline, "**", "\x02") 100 + s = replace(s, "*", "\x1D") 101 + s = replace(s, "~", "\x1E") 102 + s = replace(s, "_", "\x1F") 103 + s = replace(s, "<blue>", "\x0302") 104 + s = replace(s, "</blue>", "\x03") 105 + channel:send_msg(s) 106 + end 107 + end 108 + comlink.add_command("fmt", format)
+62
comlink/watcher.lua
··· 1 + local comlink = require("comlink") 2 + 3 + ---The Watcher module sends a notification for every message in a "watched" channel 4 + ---@class Watcher 5 + --- 6 + ---@field channels string[] List of channels that are being watched 7 + local M = { 8 + channels = {}, 9 + } 10 + 11 + ---Adds a channel to the list of watchers 12 + ---@param channel string The channel to add 13 + function M.add(channel) 14 + if channel == nil or channel == "" then 15 + local maybe_channel = comlink.selected_channel() 16 + if maybe_channel then 17 + channel = maybe_channel:name() 18 + end 19 + end 20 + table.insert(M.channels, channel) 21 + comlink.notify("comlink", "watching " .. channel) 22 + end 23 + 24 + ---Removes a channel from the list of watchers 25 + ---@param channel string The channel to remove 26 + function M.remove(channel) 27 + if channel == "" then 28 + local maybe_channel = comlink.selected_channel() 29 + if maybe_channel then 30 + channel = maybe_channel:name() 31 + end 32 + end 33 + for i, chan in ipairs(M.channels) do 34 + if chan == channel then 35 + table.remove(M.channels, i) 36 + comlink.notify("comlink", "removed watcher for " .. channel) 37 + return 38 + end 39 + end 40 + end 41 + 42 + ---Callback when a message is received 43 + ---@param channel string The channel the message was sent in 44 + ---@param sender string The sender of the message 45 + ---@param msg string The sender of the message 46 + function M.on_message(channel, sender, msg) 47 + for _, watched in ipairs(M.channels) do 48 + if watched == channel then 49 + if channel:sub(1, 2) == "#" then 50 + comlink.notify(sender .. " in " .. channel, msg) 51 + return 52 + end 53 + comlink.notify(sender, msg) 54 + return 55 + end 56 + end 57 + end 58 + 59 + comlink.add_command("watch", M.add) 60 + comlink.add_command("unwatch", M.remove) 61 + 62 + return M
+23
wezterm/wezterm.lua
··· 1 + -- Pull in the wezterm API 2 + local wezterm = require 'wezterm' 3 + 4 + -- This will hold the configuration. 5 + local config = wezterm.config_builder() 6 + 7 + -- This is where you actually apply your config choices 8 + 9 + -- Hide the tab bar when only 1 tab. 10 + config.hide_tab_bar_if_only_one_tab = true 11 + 12 + -- Use the simpler tab bar. 13 + config.use_fancy_tab_bar = false 14 + 15 + -- Set fonts. 16 + config.font = wezterm.font_with_fallback({'0xProto', 'JetBrains Mono NL', 'FiraCode Nerd Font Mono'}) 17 + config.font_size = 14.0 18 + 19 + -- No window decorations. 20 + -- config.window_decorations = "RESIZE" 21 + 22 + -- and finally, return the configuration to wezterm 23 + return config