Skip to content

Commit c1a9472

Browse files
authored
Merge pull request #7 from calops/env
2 parents 1d40963 + f16011d commit c1a9472

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Install `calops/hmts.nvim` with your favorite package manager.
3838
{
3939
"calops/hmts.nvim",
4040
version = "*",
41-
ft = "nix",
4241
}
4342
```
4443

queries/nix/injections.scm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
; ''
2525
(
2626
(indented_string_expression
27-
(string_fragment) @injection.language (#lua-match? @injection.language "^%s*#!.*/.")
27+
(string_fragment) @injection.language (#lua-match? @injection.language "^%s*#!")
2828
(_)*
2929
) @injection.content
30+
(#gsub! @injection.language ".*#!.*env (%S+).*" "%1")
3031
(#gsub! @injection.language ".*#!%s*%S*/(%S+).*" "%1")
3132
(#set! injection.include-children)
3233
) @combined

0 commit comments

Comments
 (0)