| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | feat(formatter): support formatting missing nodes | Riley Bruins | 2025-02-04 | 1 | -0/+11 |
| | | | | | | | | | | | | | | | | | | This commit makes missing nodes take formatting identical to that of regular named nodes, with the only exception being that a newline will not be prepended to a node name. E.g. this pattern: ```query (MISSING identifier) ``` will *not* be changed to: ```query (MISSING (identifier)) ``` | ||||
| * | fix(formatter): prefer #-prefixed predicates | Riley Bruins | 2025-02-04 | 1 | -0/+3 |
| | | | | | | | This prevents the formatter for appending a space after the "." in a predicate prefix, and changes it to a "#" to match all other occurrences in the codebase. | ||||
| * | fix: formatter idempotency for nested groupings (#7345) | Riley Bruins | 2024-11-11 | 1 | -0/+1 |
| | | | | | | | Currently, for something like `(((((node))))) @cap`, the formatter will produce `((node)) @cap`, and then after another pass it will produce `(node) @cap`. This commit makes it so that all extraneous parentheses are removed on the first pass. | ||||
| * | fix(formatter): simplify code, remove odd line break | Riley Bruins | 2024-10-26 | 1 | -48/+26 |
| | | |||||
| * | fix(formatter): adapt formatter for nightly | Riley Bruins | 2024-09-07 | 1 | -2/+4 |
| | | | | | | After Neovim pull #30193, the formatter was broken due to changes in the way node data is passed to predicates. | ||||
| * | fix(format): field_def inside grouping | 再生花 | 2024-08-01 | 1 | -0/+1 |
| | | |||||
| * | feat(predicates)!: rename `has-type` to `kind-eq` to align with Helix | Christian Clason | 2024-06-02 | 1 | -4/+4 |
| | | | | | No point in having a different name for the same predicate. | ||||
| * | feat(query): adapt to upstream changes | Amaan Qureshi | 2024-05-26 | 1 | -2/+2 |
| | | |||||
| * | refactor(format): drop extra indentation for field | Phạm Huy Hoàng | 2024-03-21 | 1 | -10/+0 |
| | | |||||
| * | feat(format): extra newline after modeline | Phạm Huy Hoàng | 2024-02-29 | 1 | -1/+16 |
| | | |||||
| * | feat(format-scripts): linewrap predicates | 再生花 | 2024-02-23 | 1 | -4/+39 |
| | | | | "format-ignore".kick() | ||||
| * | fix(scripts): add missing \n for nested grouping | Phạm Huy Hoàng | 2024-02-20 | 1 | -6/+2 |
| | | |||||
| * | fix(scripts): format-queries defaults to cwd | Christian Clason | 2024-02-20 | 1 | -6/+4 |
| | | |||||
| * | fix: typos | dundargoc | 2024-02-19 | 1 | -1/+1 |
| | | |||||
| * | fix(format): fix nested grouping indentation (#6128) | Phạm Huy Hoàng | 2024-02-18 | 1 | -1/+6 |
| | | |||||
| * | fix(format): handle list with 300 nodes | Phạm Huy Hoàng | 2024-01-30 | 1 | -15/+3 |
| | | |||||
| * | fix(format): improve error message | Christian Clason | 2024-01-30 | 1 | -1/+2 |
| | | |||||
| * | fix(format-scripts): remove parens if possible | Phạm Huy Hoàng | 2024-01-21 | 1 | -1/+26 |
| | | |||||
| * | Fixup format (#5934) | Phạm Huy Hoàng | 2024-01-20 | 1 | -3/+4 |
| | | | | | | | | * fix(format): newline between top-level field defs * fixup: newline between node and comment * fixup: optimize pattern | ||||
| * | feat: query formatting script | Pham Huy Hoang | 2024-01-19 | 1 | -0/+396 |
| Usage: - nvim -l scripts/format-queries.lua /path/to/file.scm - nvim -l scripts/format-queries.lua /path/to/dir fixup: add `format-ignore` directive to query/highlights.scm | |||||
