You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix-plus/helix-term/src
Timothy DeHerrera 9c6c63a2be
inject language based on file extension & shebang (#3970)
* inject language based on file extension

Nodes can now be captured with "injection.filename". If this capture
contains a valid file extension known to Helix, then the content will
be highlighted as that language.

* inject language by shebang

Nodes can now be captured with "injection.shebang". If this capture
contains a valid shebang line known to Helix, then the content will
be highlighted as the language the shebang calls for.

* add documentation for language injection

* nix: fix highlights

The `@` is now highlighted properly on either side of the function arg.

Also, extending the phases with `buildPhase = prev.buildPhase + ''''`
is now highlighted properly.

Fix highlighting of `''$` style escapes (requires tree-sitter-nix bump)

Fix `inherit` highlighting.

* simplify injection_for_match

Split out injection pair logic into its own method to make the overall
flow easier to follow.

Also transform the top-level function into a method on a
HighlightConfiguration.

* markdown: add shebang injection query
1 year ago
..
commands feat(commands): add clear-register typable command (#5695) 1 year ago
keymap feat(dap): implement Restart request (#5651) 2 years ago
ui inject language based on file extension & shebang (#3970) 1 year ago
application.rs tui: Allow toggling mouse capture at runtime (#6675) 1 year ago
args.rs Fix confusion with using --hsplit --vsplit on startup at same time (#4202) 2 years ago
commands.rs Add extend_to_first_nonwhitespace (#6837) 1 year ago
compositor.rs bump msrv to 1.63 (#5570) 2 years ago
config.rs add workspace config and manual LSP root management 2 years ago
health.rs Generalised to multiple runtime directories with priorities (#5411) 2 years ago
job.rs bump msrv to 1.63 (#5570) 2 years ago
keymap.rs add workspace config and manual LSP root management 2 years ago
lib.rs Fix new clippy lints (#5892) 2 years ago
main.rs add workspace config and manual LSP root management 2 years ago