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
2 changed files with 10 additions and 1 deletions
|
@ -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 a new issue