No description
Find a file
Michael Davis c8e6857aff Add a parser-combinator crate
Parser-combinators are one of the simpler tools for building ad-hoc
parsers. They're a good fit because they are...

* Small: each parser / parser-combinator is around 10 LOC.
* Functional: helix_core strives to be a functional set of utilities
  usable throughout the rest of the editor.
* Flexible: use them to build any sort of ad-hoc parser. In the child
  commit, we'll parse LSP Snippet syntax using these new parser
  combinators.

Why not use an existing parser-combinator crate? Existing popular
parser-combinator crates have histories of making breaking changes
(for example nom and combine).

> Implementation note: I tried to not introduce a new trait since the
> types can be expressed in terms of `impl Fn`s. The trait is necessary
> to build `seq` implementations without a proc macro though, and also
> allows us to use `&'static str`s very conveniently: see the trait
> implementation for `&'static str`.
2023-03-08 10:48:35 +09:00
.cargo
.github update MSRV to 1.65 2023-03-05 15:54:02 +09:00
book Allow LSP server to be stopped () 2023-03-07 18:34:31 -06:00
contrib
docs Expand contributing docs () 2023-02-19 12:52:12 -06:00
helix-core Doc string fix in selection.rs () 2023-02-22 21:25:15 +08:00
helix-dap feat(dap): implement Restart request () 2023-03-06 18:19:53 +09:00
helix-loader
helix-lsp Allow LSP server to be stopped () 2023-03-07 18:34:31 -06:00
helix-parsec Add a parser-combinator crate 2023-03-08 10:48:35 +09:00
helix-term Allow LSP server to be stopped () 2023-03-07 18:34:31 -06:00
helix-tui Update crossterm to 0.26.1 2023-02-28 12:35:52 +09:00
helix-vcs update MSRV to 1.65 2023-03-05 15:54:02 +09:00
helix-view Fix lacking space panic () 2023-03-05 20:43:24 +09:00
runtime Update highlights for golang () 2023-03-07 18:33:13 -06:00
xtask
.envrc
.gitattributes
.gitignore
.ignore
base16_theme.toml
Cargo.lock Add a parser-combinator crate 2023-03-08 10:48:35 +09:00
Cargo.toml Add a parser-combinator crate 2023-03-08 10:48:35 +09:00
CHANGELOG.md
default.nix
flake.lock build(nix): fix devshell 2023-02-25 07:06:30 +03:00
flake.nix build(nix): fix devshell 2023-02-25 07:06:30 +03:00
grammars.nix
languages.toml Update highlights for golang () 2023-03-07 18:33:13 -06:00
LICENSE
logo.svg
logo_dark.svg
logo_light.svg
README.md Rewrite and refactor all documentation () 2023-03-06 18:27:17 +09:00
rust-toolchain.toml update MSRV to 1.65 2023-03-05 15:54:02 +09:00
rustfmt.toml
screenshot.png
shell.nix
theme.toml
VERSION

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!