Skip to content

Commit

Permalink
Add textobject queries for Nix (helix-editor#9659)
Browse files Browse the repository at this point in the history
* Add textobject queries for Nix

* Add to lang-support.md
  • Loading branch information
jpaju authored and Schuyler Mortimer committed Jul 10, 2024
1 parent 59db644 commit 4410f09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
| nasm ||| | |
| nickel || || `nls` |
| nim |||| `nimlangserver` |
| nix || | | `nil` |
| nix || | | `nil` |
| nu || | | `nu` |
| nunjucks || | | |
| ocaml || || `ocamllsp` |
Expand Down
9 changes: 9 additions & 0 deletions runtime/queries/nix/textobjects.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(comment) @comment.inside
(comment)+ @comment.around

(formals
((_) @parameter.inside . ","? @parameter.around) @parameter.around)

(function_expression
body: (_) @function.inside) @function.around

0 comments on commit 4410f09

Please sign in to comment.