Skip to content

Commit

Permalink
indents(css, make): add basic queries
Browse files Browse the repository at this point in the history
* Despite the fact that queries look simple, they improve indentation in some edge cases that helix couldn't handle correctly by default.
  • Loading branch information
woojiq committed Jan 21, 2024
1 parent 959dbfc commit c4cd701
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
| cpon || || |
| cpp |||| `clangd` |
| crystal ||| | `crystalline` |
| css || | | `vscode-css-language-server` |
| css || | | `vscode-css-language-server` |
| cue || | | `cuelsp` |
| d |||| `serve-d` |
| dart || || `dart` |
Expand Down Expand Up @@ -97,7 +97,7 @@
| log || | | |
| lpf || | | |
| lua |||| `lua-language-server` |
| make || | | |
| make || | | |
| markdoc || | | `markdoc-ls` |
| markdown || | | `marksman` |
| markdown.inline || | | |
Expand Down
7 changes: 7 additions & 0 deletions runtime/queries/css/indents.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
(block)
] @indent

[
"}"
] @outdent
8 changes: 8 additions & 0 deletions runtime/queries/make/indents.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
(define_directive)
(rule)
] @indent

[
"endef"
] @outdent

0 comments on commit c4cd701

Please sign in to comment.