Helix Mirror
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.
 
 
 
 
 
Go to file
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
2 years ago
.cargo enable rendering in integration tests (#5819) 2 years ago
.github Recursive create the pkgname directory when creating a release tarball 2 years ago
book inject language based on file extension & shebang (#3970) 2 years ago
contrib Add changelog notes for the 23.03 release (#6455) 2 years ago
docs Document how to run tests (#6268) 2 years ago
helix-core inject language based on file extension & shebang (#3970) 2 years ago
helix-dap Fix unwrap bug in DAP (#6786) 2 years ago
helix-loader build(deps): bump etcetera from 0.5.0 to 0.7.1 (#6873) 2 years ago
helix-lsp feat: add a config option to exclude declaration from LSP references (#6886) 2 years ago
helix-parsec revamped snippet text element parsing 2 years ago
helix-term inject language based on file extension & shebang (#3970) 2 years ago
helix-tui build(deps): bump bitflags from 2.1.0 to 2.2.1 (#6869) 2 years ago
helix-vcs upgrade gitoxide to v0.44 and change repository discovery to worktree-only (#6867) (#6890) 2 years ago
helix-view feat: add a config option to exclude declaration from LSP references (#6886) 2 years ago
runtime inject language based on file extension & shebang (#3970) 2 years ago
xtask feat: lint for `ui.virtual` and catch present and future virtual based features (#6320) 2 years ago
.envrc Work around a nix-direnv issue 3 years ago
.gitattributes Add .gitattributes (#3318) 2 years ago
.gitignore Remove vale from .gitignore 2 years ago
.ignore Add a .ignore file to make ripgrep more useful (#3315) 2 years ago
CHANGELOG.md changelog: Add remaining notes for 23.03 (#6498) 2 years ago
Cargo.lock upgrade gitoxide to v0.44 and change repository discovery to worktree-only (#6867) (#6890) 2 years ago
Cargo.toml Update tree-sitter to v0.20.10 (#6608) 2 years ago
LICENSE Add the LICENSE file. 4 years ago
README.md Rewrite and refactor all documentation (#5534) 2 years ago
VERSION Add changelog notes for the 23.03 release (#6455) 2 years ago
base16_theme.toml Set ui.text.inactive for official themes 2 years ago
default.nix build(nix): update flake deps, add default.nix file 2 years ago
flake.lock build(nix): update flake dependencies, remove deprecated code from flake 2 years ago
flake.nix build(nix): update flake dependencies, remove deprecated code from flake 2 years ago
grammars.nix nix: replace `runCommandNoCC` with `runCommand` (#3992) 2 years ago
languages.toml inject language based on file extension & shebang (#3970) 2 years ago
logo.svg Add the new logo! 2 years ago
logo_dark.svg Add logo with text included (#4973) 2 years ago
logo_light.svg Add logo with text included (#4973) 2 years ago
rust-toolchain.toml update MSRV to 1.65 2 years ago
rustfmt.toml Add rustfmt.toml to force formatting to use rustfmt defaults 3 years ago
screenshot.png update screenshot (#1879) 3 years ago
shell.nix build(nix): update flake deps, add default.nix file 2 years ago
theme.toml feat(debug): highlight current line (#5957) 2 years ago

README.md

Helix

Build status GitHub Release Documentation GitHub contributors Matrix Space

Screenshot

A Kakoune / Neovim inspired editor, written in Rust.

The editing model is very heavily based on Kakoune; during development I found myself agreeing with most of Kakoune's design decisions.

For more information, see the website or documentation.

All shortcuts/keymaps can be found in the documentation on the website.

Troubleshooting

Features

  • Vim-like modal editing
  • Multiple selections
  • Built-in language server support
  • Smart, incremental syntax highlighting and code editing via tree-sitter

It's a terminal-based editor first, but I'd like to explore a custom renderer (similar to Emacs) in wgpu or skulpin.

Note: Only certain languages have indentation definitions at the moment. Check runtime/queries/<lang>/ for indents.scm.

Installation

Installation documentation.

Packaging status

Contributing

Contributing guidelines can be found here.

Getting help

Your question might already be answered on the FAQ.

Discuss the project on the community Matrix Space (make sure to join #helix-editor:matrix.org if you're on a client that doesn't support Matrix Spaces yet).

Credits

Thanks to @JakeHL for designing the logo!