Hello, new friend.
apk add helix
hx
hx --tutor
Also :tutor.
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
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:
- General enough to parse any programming language
- Fast enough to parse on every keystroke in a text editor
- Robust enough to provide useful results even in the presence of syntax errors
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.
Config saved in ~/.config/helix/config.toml.
:config-open