My personal Helix IDE config.
For an introduction to the Helix IDE, please see the Helix website and consider practicing with daily keystroke-efficient drills using Keyglide.
- Install C build tools and common Rust dependencies:
sudo apt update sudo apt install build-essential curl pkg-config libssl-dev
- Install the Rust toolchain via Rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install essential Rust components:
rustup component add rust-analyzer rustfmt clippy
- Install LLDB for DAP (in-editor debugging support):
Helix uses
sudo apt install lldb
lldb-dap(included with LLDB) as its default Rust debug adapter. On Ubuntu the binary is sometimes installed with a version suffix (e.g.lldb-dap-18). Ifhx --health rustreports the debugger as unavailable, create an unversioned symlink:# Replace 18 with the version installed on your system sudo ln -s /usr/bin/lldb-dap-18 /usr/local/bin/lldb-dap - Install Helix (https://docs.helix-editor.com/package-managers.html#ubuntudebian):
sudo add-apt-repository ppa:maveonair/helix-editor sudo apt update sudo apt install helix
- Copy the editor config from this repo into
~/.config/helix/:mkdir -p ~/.config/helix cp config.toml ~/.config/helix/config.toml cp languages.toml ~/.config/helix/languages.toml cp ignore ~/.config/helix/ignore
- Verify that Helix can see
rust-analyzerand all grammars:hx --health rust
- Start Helix and enjoy!
hx .
- Zellij or tmux — Helix has no built-in terminal, so a terminal multiplexer is strongly recommended for running
cargo build/cargo testin a split pane alongside the editor.-
cargo install --locked zellij rustup update zellij
-
- Alacritty — a terminal with support for copy-pasting in a compatible way with Zellij. i.e. run
alacrittyinstead of Bash.-
cargo install alacritty
-
- cargo-nextest — A faster, more ergonomic test runner (
cargo install cargo-nextest).-
cargo binstall cargo-nextest --secure
- And if you have a library crate:
cargo nextest run && cargo test --doc
-