No description
Find a file
Michael Davis f32c05db85
Detect indent-style in :set-language ()
Indent style may change when choosing a language with `:set-language`.
Line-endings most likely will not change, but `:set-language` should
have a similar effect as reloading a file (`:reload`), plus the two
are currently grouped in the implementation and line-ending detection
is not particularly expensive.
2022-08-05 09:11:31 +09:00
.cargo
.github
book
contrib
docs add release checklist and changelog curation docs () 2022-07-22 10:31:40 +09:00
helix-core Avoid copying fragments () 2022-08-04 14:44:43 +09:00
helix-dap DAP: Make cwd required in RunTerminalArguments 2022-07-05 12:34:03 +02:00
helix-loader add a CLI flag for specifying config file location () 2022-08-04 13:05:52 +09:00
helix-lsp Change default formatter for any language () 2022-08-04 13:01:48 +09:00
helix-term Detect indent-style in :set-language () 2022-08-05 09:11:31 +09:00
helix-tui build(deps): bump crossterm from 0.23.0 to 0.24.0 () 2022-07-05 19:30:33 +09:00
helix-view Resolve clippy lints () 2022-08-04 14:32:59 +09:00
runtime
xtask
.envrc
.gitattributes
.gitignore
.ignore Add a .ignore file to make ripgrep more useful () 2022-08-03 09:00:39 -05:00
base16_theme.toml
Cargo.lock
Cargo.toml
CHANGELOG.md
default.nix
flake.lock
flake.nix
grammars.nix
languages.toml Change default formatter for any language () 2022-08-04 13:01:48 +09:00
LICENSE
README.md
rust-toolchain.toml
rustfmt.toml
screenshot.png
shell.nix
theme.toml
VERSION

Helix

Build status

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

Packages are available for various distributions (see Installation docs).

If you would like to build from source:

git clone https://github.com/helix-editor/helix
cd helix
cargo install --path helix-term

This will install the hx binary to $HOME/.cargo/bin and build tree-sitter grammars. If you want to customize your languages.toml config, tree-sitter grammars may be manually fetched and built with hx --grammar fetch and hx --grammar build.

Helix also needs its runtime files so make sure to copy/symlink the runtime/ directory into the config directory (for example ~/.config/helix/runtime on Linux/macOS, or %AppData%/helix/runtime on Windows).

OS Command
Windows (cmd.exe) xcopy runtime %AppData%\helix\runtime
Windows (PowerShell) xcopy runtime $Env:AppData\helix\runtime
Linux/macOS ln -s $PWD/runtime ~/.config/helix/runtime

This location can be overridden via the HELIX_RUNTIME environment variable.

Packages already solve this for you by wrapping the hx binary with a wrapper that sets the variable to the install dir.

NOTE: running via cargo also doesn't require setting explicit HELIX_RUNTIME path, it will automatically detect the runtime directory in the project root.

In order to use LSP features like auto-complete, you will need to install the appropriate Language Server for a language.

Packaging status

MacOS

Helix can be installed on MacOS through homebrew via:

brew tap helix-editor/helix
brew install helix

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).