Core Plugins
HUME ships these plugins under the core: namespace: a plugin and grammar manager, language server support and an installer for the servers, a language server for your Scheme config, fuzzy pickers, live git diff, an undo-history graph, Markdown drawn without its syntax, color literals painted with their color, completion from the words in a buffer, a few keymap alternatives, and the standard library the others build on. None of them load automatically: nothing runs until you ask for it in your init.scm.
Bring a plugin in with load-plugin!:
(load-plugin! "core:plum")Most core plugins wait until you first use them, such as when you run one of their commands or open a file in a language they handle. core:buffer-words and the ones that add keys load at startup, except core:lsp, which loads the first time a buffer gets a language. See How plugins are loaded.
core:plum
PLUM (the HUME PLUgin Manager) installs and updates third-party plugins and themes from GitHub, and installs the tree-sitter grammars that power syntax highlighting. Every PLUM command needs core:stdlib, so load it first:
(load-plugin! "core:stdlib")
(load-plugin! "core:plum")PLUM installs nothing on its own; the commands below do the work when you run them.
| Command | Effect |
|---|---|
:plum-install-plugins | Install every plugin named in init.scm that is not on disk |
:plum-cleanup-plugins | Remove on-disk plugins that init.scm does not name |
:plum-update-plugins | Bring every installed third-party plugin to its pinned tag, branch or commit, or its latest version (see Pinning a version) |
:plum-list-plugins | Show named / installed / orphan / missing plugins |
:plum-install-grammar [lang] | Download and install one language's grammar, the current buffer's language by default; Tab-completes language names |
:plum-list-grammars | Show the installed grammars, and anything else the grammars folder holds |
:plum-cleanup-grammars | Remove everything in the grammars folder except the installed grammars |
:plum-install-theme <user/repo> | Install (or reinstall) a theme repo's themes |
:plum-update-themes | Pull the latest version of every installed theme repo |
:plum-list-themes | Show installed theme repos and the themes each provides |
:plum-remove-theme <user/repo> | Remove an installed theme repo; Tab-completes installed slugs |
After :plum-install-plugins or :plum-update-plugins, run :reload-config to load what changed.
plum/ensure-grammars installs the grammars in a list that are not installed. It takes a list argument, so it is for init.scm, not the : prompt:
(call! "plum/ensure-grammars" '("rust" "toml"))#:config (hash 'grammar-source "/path/to/folder") makes PLUM install grammars from a folder you built them into, and download only the ones the folder lacks; see Install from a local folder.
Leaving PLUM out only removes these commands. Installed plugins, grammars and themes keep working without it; PLUM is only needed to install new ones. See Syntax Highlighting for the grammar workflow and Themes for the theme workflow.
core:lsp

Language server support (hover, go-to-definition, references, symbol pickers, diagnostics, rename, formatting, code actions, signature help, completions, and inlay hints), plus management of the running server processes (:lsp-status, :lsp-stop, :lsp-restart). Downloading the servers is core:lsp-install's job.
(load-plugin! "core:stdlib")
(load-plugin! "core:lsp")Requires core:stdlib loaded first.
See Language Servers for setup, the full command and key tables, and settings.
core:lsp-install
Downloads language servers and sets them up for core:lsp, with :lsp-install, :lsp-uninstall and :lsp-catalog. Each language uses the same servers Helix picks for it. Without this plugin, core:lsp works with servers you register yourself.
(load-plugin! "core:stdlib")
(load-plugin! "core:lsp-install")Requires core:stdlib loaded first. See Language Servers for the prerequisites and the commands.
core:steel-server
Registers a language server for Scheme buffers (.ss/.scm/.sld), including your own init.scm and plugin files, so you get hover, diagnostics, and completion while editing your HUME config. It also makes cog.scm the project root marker for Scheme. It needs core:lsp.
(load-plugin! "core:stdlib")
(load-plugin! "core:lsp")
(load-plugin! "core:steel-server")The server knows HUME's own commands and configuration functions, so nothing HUME provides raises an unknown-identifier warning while you edit init.scm or a plugin file.
:lsp-install can't install this server. Install it with this plugin's own command:
| Command | Effect |
|---|---|
:steel-server-install | Install the Scheme language server and register it for Scheme buffers |
Installing requires cargo; install Rust from rustup.rs first. See Language Servers for the general LSP workflow.
core:pickers

Fuzzy file, buffer, and modified-file finders: z f opens a file picker (inside a git repository it lists the repository's files, elsewhere it needs fd), z b a buffer switcher, and z m a picker over files with staged or unstaged git changes.
(load-plugin! "core:stdlib")
(load-plugin! "core:pickers")Requires core:stdlib loaded first.
See Fuzzy pickers for the file sources, keys, buffer display, modified-files details, and options.
core:git-diff

Live inline git diff. As you type, it compares the buffer against a git ref (default HEAD) and renders:
- gutter
+/~signs, plus a boundary mark (▁/▔) for deletions - deleted lines as virtual lines
- added/changed lines with a background tint
- word-level highlights inside changed lines
(load-plugin! "core:stdlib")
(load-plugin! "core:git-diff")Requires core:stdlib loaded first.
| Command | Effect |
|---|---|
:toggle-git-signs [ref] | Toggle gutter signs for the current buffer |
:toggle-inline-diff [ref] | Toggle inline rendering (virtual deleted lines, word highlights, background tint) for the current buffer |
- Both take an optional git ref, e.g.
:toggle-inline-diff HEAD~2, and Tab-complete branches and tags from the current buffer's repo. - Giving a ref always turns that rendering on and points it at that ref. The two commands share the ref, and it sticks across a later bare toggle off and on.
- A file git doesn't track (untracked, new, or outside a repo) shows no diff.
- A commit or checkout made outside HUME shows when you switch back to the buffer or HUME regains focus.
Both are typed commands, with no keys bound by default. Each has an editor-command twin, without the ref argument, that you can bind to a key:
(bind-key! 'normal "space i" "git-diff/toggle-inline-diff")
(bind-key! 'normal "space s" "git-diff/toggle-git-signs")Configure with #:config:
(load-plugin! "core:stdlib")
(load-plugin! "core:git-diff"
#:config (hash 'signs #t 'inline #f 'ref "HEAD" 'branch-style 'parens))| Key | Type | Default | Effect |
|---|---|---|---|
'signs | bool | #t | Whether gutter signs start on for each buffer |
'inline | bool | #f | Whether inline rendering starts on for each buffer |
'ref | string | "HEAD" | The default git ref a buffer diffs against, until overridden per-buffer via the toggle commands |
'branch-style | 'parens or 'icon | 'parens | How the "steel:git-branch" statusline element writes the branch: (main) or ⎇ main |
Inline rendering's background tint and word highlights need your theme to define colors for them; HUME's bundled themes do.
The plugin also keeps a "steel:git-branch" statusline element fresh for the focused buffer. Add it to your own configure-statusline! call (see Statusline → Custom elements). It updates when you switch to a buffer, when you save it and when HUME regains focus, and is empty for a buffer outside any repo.
Drawing a diff from a script
A command of your own can check and turn on the inline diff, or draw diffs of its own the way core:git-diff draws them:
| Command | Effect |
|---|---|
(call! "git-diff/inline-diff?" pane) | #t when inline rendering is on for the buffer, #f otherwise |
(call! "git-diff/show-inline-diff" pane ref) | Turn inline rendering on against ref; it never turns it off |
(call! "git-diff/render-diff" pane source hunks) | Draw hunks in the buffer as an inline diff |
(call! "git-diff/release-diff" pane source) | Clear what source drew and bring the buffer's own inline diff back |
hunksis the'hunkslist thatdiff-buffer-linesorbuffer-revision-diffreturns (see Diffing).sourceis a name of your plugin's own, so its drawing never mixes withcore:git-diff's.
Each render-diff call replaces what source drew for that buffer, and an empty list draws nothing. While a source draws, the buffer's own inline diff is hidden so changed lines don't show twice; the gutter signs stay.
core:undotree

A graph of the buffer's undo history in the bottom drawer, with a jump to any revision in it, including a revision on another branch.
(load-plugin! "core:undotree")It needs no other plugin, but shows what each revision changed only when core:git-diff is loaded too (see below).
| Command | Effect |
|---|---|
:undotree | Open the focused buffer's undo tree in the drawer, or close it if it is open |
undotree/toggle | The same, as an editor command you can bind to a key |
The plugin ships no key. Bind one in your init.scm:
(bind-key! 'normal "z u" "undotree/toggle")Each row is one revision: the graph, a marker column, and how long ago it was made. Newer revisions are on top, a branch is a column of its own, and o-' is a branch joining the revision it grew from. In the marker column, @ is the revision the buffer is on and S the revision your file was last saved at:
o 2m
| o @ 4m
| | o 6m
| | o 7m
| o-' 9m
o-' S 12mA theme styles the drawer with these scopes:
| Part | Scope | On the selected row |
|---|---|---|
| The graph | markup.bold | |
@ | diagnostic.warning.message-text | diagnostic.warning.message |
S | diagnostic.info.message-text | diagnostic.info.message |
| The whole row | diagnostic.warning.message when it has @, or diagnostic.info.message when it has only S |
The drawer opens with the highlight on the current revision. Down/Up move the highlight and Ctrl-d/Ctrl-u page it, as in the language server lists. Enter moves the buffer to the highlighted revision and leaves the drawer open, so you can step through history one revision at a time; Esc closes it. After a jump, U and Ctrl-r redo along the branch you jumped into.
With core:git-diff loaded, the buffer also shows what the revision you are on changed, drawn the way core:git-diff's inline diff draws a diff against a git ref:
- the text of its parent revision as deleted lines above the changed lines
- the changed words highlighted
- a tint on the changed lines
The diff follows every jump and edit while the drawer is open. The root revision shows nothing, and closing the drawer clears it. The diff does not depend on whether core:git-diff's own inline diff is switched on. Without core:git-diff the drawer works the same, and opening it shows a message saying to load the plugin.
While the drawer is open:
- It follows the buffer: it redraws after an edit, an undo or a redo, and switches to the new buffer when you switch buffers.
- The ages stay current.
- Opening another drawer, such as the references list, replaces it.
- In a read-only buffer,
Enterreports an error instead of jumping.
The history lives in memory only, so it starts fresh each time you open a file.
core:markdown

Draws Markdown without its syntax, in the style of a rendered preview, right in the buffer you edit. A heading's # becomes its level as a glyph of one to six dots and a bar (⠘▌ for a second-level heading) over a tinted band, bullets become dots, task boxes become checkboxes, quotes get a bar, horizontal rules become a line, code fences give way to a background band, and tables are drawn as box grids. Emphasis, strikethrough and code spans lose their markers, links show only their text, and escapes and entities (\*, &, A) show the character they stand for.
(load-plugin! "core:stdlib")
(load-plugin! "core:markdown")Requires core:stdlib loaded first. It starts when you open a Markdown file, or when a Markdown popup opens with the markdown grammar installed.
It also draws Markdown popups, such as a language server's hover, and Markdown documentation in the completion menu's documentation box. A popup shows no source, since no selection is in it, and a table wider than the popup breaks its grid.
It needs the markdown and markdown.inline grammars: install them with :plum-install-grammar if HUME warns that one is missing. Without markdown.inline, the headings, lists, quotes, rules, code blocks and tables are drawn and the emphasis, links and escapes stay as written.
Every line the cursor or a selection touches shows its source, in every mode. While a selection is inside a code block or a table, the whole block shows its source.
Ordered list markers (1.), bracketed text such as [TODO] or [!NOTE], entity names other than common ones such as & and ©, references to control characters, and Markdown inside a fenced code block are left as written. The colors and bands come from the theme; to change them without editing it, style the scopes from your config.
Only the lines on screen are drawn. After you scroll, the lines that came into view appear as written until hook-viewport-debounce-ms after you stop; lower it in Settings to shorten the wait.
| Command | Effect |
|---|---|
:toggle-markdown-preview | Turn the preview off for the current buffer, or back on |
markdown/toggle-preview | The same, as an editor command you can bind to a key |
Configure with #:config:
(load-plugin! "core:markdown"
#:config (hash 'preview #f 'rule-width 60))| Key | Type | Default | Effect |
|---|---|---|---|
'preview | boolean | #t | Whether the preview starts on in each buffer. Popups and the completion documentation box are drawn either way |
'rule-width | integer (≥ 1) | 40 | How many ─ a horizontal rule draws |
A table wider than the pane draws a broken grid when soft wrap is on. A table's top and bottom border appear only on an empty line next to it. A tab inside a table cell throws its column out of line.
core:colorizer

Paints color literals with the color they name: hex colors of three, four, six or eight digits (#f00, #ff0000cc), rgb(), rgba(), hsl(), hsla() and oklch() calls, and, in CSS, SCSS and Less files, color names such as rebeccapurple. By default a literal's background takes its color and its text turns black or white, whichever reads.
(load-plugin! "core:stdlib")
(load-plugin! "core:colorizer")Requires core:stdlib loaded first. It starts when you open a file.
A literal's alpha is ignored. An oklch() color outside what the screen can show is painted with the nearest color it can, as browsers do. hwb(), lab(), lch(), oklab() and color() are not painted, nor a call whose arguments use var(), calc() or a relative color, nor a call written across several lines.
A # followed by hex digits is painted when no ASCII letter, digit, _, - or & comes right before it and no ASCII letter, digit, _ or - comes right after the digits, so a CSS id selector spelled in hex digits, such as #bad {, is painted too, and div#bad is not. Outside the languages in 'named-languages, a three- or four-digit # with no letter, such as the issue number #123, is not painted.
Only the lines on screen are painted. After you scroll, the lines that came into view appear unpainted until hook-viewport-debounce-ms after you stop; lower it in Settings to shorten the wait. To keep painting from slowing the editor down, one render reads at most 'max-render-chars characters of the lines on screen, from the top. A line that does not fit what is left stays unpainted. At the default of 7,100 characters, a full-screen 200x60 terminal of lines up to 120 characters paints whole. A screen of longer lines, such as minified CSS, loses its last lines.
A session can style about 65,000 distinct colors, a budget it shares with themes, grammars and other plugins. Once it runs out, a color not painted before in the session stays unpainted, and a warning says so once.
| Command | Effect |
|---|---|
:toggle-colorizer | Turn painting off for the current buffer, or back on |
colorizer/toggle | The same, as an editor command you can bind to a key |
Configure with #:config:
(load-plugin! "core:colorizer"
#:config (hash 'mode 'foreground 'named-languages '("css" "scss" "less" "html")))| Key | Type | Default | Effect |
|---|---|---|---|
'enabled | boolean | #t | Whether painting starts on in each buffer |
'mode | 'background or 'foreground | 'background | 'background paints the literal's background with its color; 'foreground paints its text |
'named-languages | list of strings | '("css" "scss" "less") | Languages whose files also paint color names, and paint a #123 with no letter |
'max-render-chars | integer (≥ 1) | 7100 | How many characters one render reads at most |
core:buffer-words
Offers every identifier already in the buffer as an Insert-mode completion, in any buffer, including a scratch buffer or a .txt file where core:lsp has no server to ask.
(load-plugin! "core:stdlib")
(load-plugin! "core:buffer-words")Requires core:stdlib loaded first.
When both plugins are loaded, its candidates rank alongside core:lsp's in the same menu, with core:lsp's answers preferred on a tie.
A word written capitalized (Apply) is also offered lowercase (apply), and the reverse, following the case you type. A word capitalized only because it started a sentence is still found when you type it lowercase mid-sentence. A word with an inner capital (HashMap) or in all caps (MAX_LEN) is offered only as written.
Configure with #:config:
(load-plugin! "core:buffer-words"
#:config (hash 'match 'string 'chars 8000))| Key | Type | Default | Effect |
|---|---|---|---|
'match | 'string | 'fuzzy | 'string | 'string narrows by prefix as you type; 'fuzzy scores subsequence matches like core:lsp's own candidates |
'chars | integer (≥ 1) | 8000 | How much of a large buffer each indexing step reads around the cursor. Lower it to shorten the pauses on a huge buffer; raise it to index a large buffer in fewer, longer steps |
core:vim-keybind
Vim keys: $, ^, 0, C and D (change/delete to end of line), Ctrl-6 (alternate buffer), and o in Extend mode to swap the selection's ends. It doesn't bind G, which is HUME's own prefix (G L/G U/G C/G G/G A/G S, plus G R with core:lsp); g e already goes to the last line.
(load-plugin! "core:stdlib")
(load-plugin! "core:vim-keybind")Requires core:stdlib loaded first.
By default ('smart), C is context-sensitive. On a bare cursor with no count it changes to end of line, as in Vim. With a real selection or any count prefix (e.g. 3C), it runs HUME's own copy-selection-on-next-line, so that command stays reachable. Change this with #:config:
(load-plugin! "core:vim-keybind" #:config (hash 'change-to-eol 'on))'on always changes to end of line; 'off leaves C alone. Every value needs core:stdlib.
core:classic-paste
GUI-style paste, if you'd rather keep the clipboard on its own keys: p / P paste the kill ring, Ctrl-v / Ctrl-Shift-v paste the system clipboard (Ctrl-Shift-v needs the kitty protocol), and clipboard-joins-ring is set to never, so copied text stays off the kill ring. A clipboard-joins-ring you set yourself wins.
(load-plugin! "core:classic-paste")core:stdlib
A toolkit of small helpers that other plugins build on, not something you use directly. core:buffer-words, core:git-diff, core:lsp, core:lsp-install, core:pickers, core:plum and core:vim-keybind all depend on it, so load it before them:
(load-plugin! "core:stdlib")Keep its own triggers
Load core:stdlib as shown above, without a declare-plugin! line of your own. The plugins that depend on it call every one of its helpers; with a narrower trigger list, a plugin fails with an error when it calls a helper you left out.
If you're writing a plugin, see Standard Library for every command it offers.