mirror of
https://github.com/helix-editor/helix
synced 2024-11-10 10:34:45 +01:00
Add textobject queries for Nix (#9659)
* Add textobject queries for Nix * Add to lang-support.md
This commit is contained in:
parent
c72426cc87
commit
2dc9ce68ec
@ -112,7 +112,7 @@
|
||||
| nasm | ✓ | ✓ | | |
|
||||
| nickel | ✓ | | ✓ | `nls` |
|
||||
| nim | ✓ | ✓ | ✓ | `nimlangserver` |
|
||||
| nix | ✓ | | | `nil` |
|
||||
| nix | ✓ | ✓ | | `nil` |
|
||||
| nu | ✓ | | | `nu` |
|
||||
| nunjucks | ✓ | | | |
|
||||
| ocaml | ✓ | | ✓ | `ocamllsp` |
|
||||
|
9
runtime/queries/nix/textobjects.scm
Normal file
9
runtime/queries/nix/textobjects.scm
Normal file
@ -0,0 +1,9 @@
|
||||
(comment) @comment.inside
|
||||
(comment)+ @comment.around
|
||||
|
||||
(formals
|
||||
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||||
|
||||
(function_expression
|
||||
body: (_) @function.inside) @function.around
|
||||
|
Loading…
Reference in New Issue
Block a user