mars

Helix

Hello, new friend.

apk add helix
hx

Tutor

hx --tutor

Also :tutor. Notes / cheatsheet:

Theme

Default theme (name default) is fine but dark. base16_terminal* themes use the terminal’s 16 color palettes (:theme 16_ to see more adaptive themes).

Helix wiki has a partial list of themes with screenshots. Live previewing is instant though:

:theme <tab><tab>

Just the light ones:

:theme _light<tab><tab>

Save choice in config (:config-open):

theme = adwaita-light

LSP and tree-sitter

The tree-sitter grammars are currently packaged separately.

https://tree-sitter.github.io/tree-sitter/

Tree-sitter is a parser generator tool and an incremental parsing library. It can build a concrete syntax tree for a source file and efficiently update the syntax tree as the source file is edited. Aims:

apk add helix-tree-sitter-vendor

Helix also has built in LSP (Language server protocol) support. Tree-sitter and LSP intersect, but not completely. Loosely speaking, tree-sitter is more “syntactic”, and file level; LSP drives more “semantic” aspects and works on a project level.

Their respective blurbs from the Helix home page:

Config

Config saved in ~/.config/helix/config.toml.

:config-open