Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration reference

This page is the complete reference for user configuration. It lists every setting accepted by config.toml and languages.toml; the linked chapters explain the larger features and show more examples. Start with Configure Mitos for your first configuration file.

Configuration files and precedence

The user configuration directory is:

  • Linux and macOS: ~/.config/mitos
  • Windows: %AppData%\mitos

Set MITOS_CONFIG_DIR to use another user configuration directory on any platform. It applies to config.toml, languages.toml, snippets, and user runtime assets. Relative paths are resolved at startup and remain stable when you change the editor’s working directory. An empty value uses the platform default. --config still overrides the main configuration file; it does not change the directory used for the other files.

The main file is config.toml. Open it from Mitos with :config-open, then apply changes with :config-reload. On Unix, sending USR1 to the Mitos process also reloads it, for example with pkill -USR1 ms.

Pass -c <path> or --config <path> to use another config.toml:

ms --config path/to/custom-config.toml

A project may override both files with .mitos/config.toml and .mitos/languages.toml. Project values are merged over user values, which are merged over built-in defaults. Project files are loaded only after the workspace is trusted; see Workspace trust.

Important

[editor.workspace-trust] is always read from the user config.toml. A project cannot weaken the trust policy that decides whether its own files may be loaded.

Unknown config.toml editor keys are rejected. This makes misspelled settings fail visibly instead of being silently ignored.

Use an existing Helix configuration

Point MITOS_CONFIG_DIR at your Helix configuration directory to reuse its config.toml, languages.toml, and custom runtime assets. For example, on Linux and macOS:

MITOS_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/helix" ms

In PowerShell on Windows:

$env:MITOS_CONFIG_DIR = "$env:APPDATA\helix"
ms

This selects one user configuration directory; it does not merge Helix and Mitos user configurations. Workspace overrides still use .mitos/ and require workspace trust. Language servers must be installed separately.

Mitos accepts many legacy Helix setting names, but settings, commands, and bundled themes can differ. Adjust unsupported entries in a separate copy if you need to keep your Helix configuration compatible. :config-open and :config-migrate target the selected configuration, so edits or migration also affect Helix when you share the directory.

Structure and compatibility

Settings are grouped by feature. For example, use editor.lsp.messages.enable and editor.completion.trigger-delay. Feature tables can be written explicitly or with TOML dotted keys. Editor durations are milliseconds; language-server request timeouts are seconds.

Legacy paths remain accepted, including editor.lsp.display-messages, editor.auto-format, and the old boolean or string feature shorthands. Each file is normalized before layering, so a project override wins regardless of which spelling is used. Defining the same logical setting with both spellings in one file is an error. Tables merge recursively and ordinary arrays replace the earlier value, including an explicit empty array.

Runtime commands use editor-relative paths, for example :toggle lsp.inlay-hints.enable and :set completion.trigger-delay 100. Terminal settings use terminal.*, such as :toggle terminal.true-color. Legacy command paths remain accepted; completions show canonical paths.

Configuration migration

Older setting names remain accepted. To update a configuration file, see Configuration migration. Migration asks for confirmation and keeps a backup; normal startup leaves your files unchanged.

config.toml reference

config.toml accepts five top-level entries:

KeyTypeDefaultDescription
themestring or table{ light = "modus_operandi", dark = "modus_vivendi" }Theme name, or { light = "...", dark = "...", fallback = "..." }. fallback is optional and defaults to dark. See Themes.
editortableSee belowShared editor behavior and UI settings.
terminaltableSee belowTerminal capabilities, keyboard protocol, and external launcher.
keystableBuilt-in keymapEditor mode bindings and component bindings for pickers, prompts, menus, and popups. Entries merge with the built-in keymap. See Key remapping.
commandstable{}User-defined command-mode commands. See Custom commands.

Example:

theme = "onedark"

[editor]
line-number = "relative"
mouse.enable = false
icons = true # Requires a Nerd Font.

[editor.cursor.shape]
insert = "bar"
normal = "block"
select = "underline"

[keys.normal]
C-s = ":write"

[commands]
":wq" = [":write", ":quit"]

[editor]

For common examples, see Configure Mitos.

KeyType / accepted valuesDefaultDescription
welcome-screenbooleantrueShow the welcome screen when Mitos starts without a file.
shellarray of stringsUnix: ["sh", "-c"]; Windows: ["cmd", "/C"]Command prefix used to execute shell commands.
line-number"absolute" or "relative""absolute"Line-number display mode. Relative numbers become absolute in insert mode and when the view is unfocused.
guttersarray or table["diagnostics", "spacer", "line-numbers", "spacer", "diff"]Gutter layout and options. See [editor.gutters].
auto-pairstable{ enable = true }Insert matching delimiters. See [editor.auto-pairs].
spellingtableDisabledDictionaries, accepted words, and token filters. See [editor.spelling].
text-widthinteger80Width used by :reflow and optionally soft wrapping.
idle-timeoutmilliseconds250Idle delay used by editor UI timers.
continue-commentsbooleantrueContinue a line comment when Enter creates a new line inside it.
auto-infobooleantrueDisplay contextual information popups.
auto-info-delaymilliseconds0Wait this long after a key prefix before showing its bindings. Applies when auto-info is enabled. Sticky keymaps and other contextual popups appear immediately.
iconsbooleanfalseShow UI icons. The glyphs require a Nerd Font.
border-style"none", "plain", "rounded", "double", "thick", "quadrant-inside", or "quadrant-outside""rounded"Border glyphs for panels, popups, menus, and separators. Use "none" to hide borders. This preference stays the same when switching themes; colors come from the theme.
infotable{ border-style = "inherit" }Contextual information popup appearance. See [editor.info].
shell-outputtable{ border-style = "inherit" }Shell command output popup appearance. See [editor.shell-output].
pickertableSee belowShared picker appearance. See [editor.picker].
splitstableSee belowPane sizing. See [editor.splits].
file-pickertableSee belowFile-picker and global-search traversal. See [editor.file-picker].
file-explorertableSee belowFile-explorer traversal. See [editor.file-explorer].
buffer-pickertableSee belowInitial selection in the buffer picker. See [editor.buffer-picker].
command-linetable{ show = "always", border-style = "inherit" }Command row visibility and help popup appearance. See [editor.command-line].
statuslinetableSee belowStatusline layout and labels. See [editor.statusline].
searchtableSee belowSearch matching and wrap behavior. See [editor.search].
lsptableSee belowGlobal LSP behavior. See [editor.lsp].
debuggertableSee belowRuntime value display. See [editor.debugger].
rulerstableSee belowGuide columns and glyph. See [editor.rulers].
whitespacetableSee belowVisible whitespace rendering. See [editor.whitespace].
breadcrumbtableSee belowBreadcrumb navigation bar. See [editor.breadcrumb].
indent-guidestableSee belowVertical indentation guides. See [editor.indent-guides].
soft-wraptableSee belowSoft wrapping. See [editor.soft-wrap].
jump-label-alphabetstring of unique characters"abcdefghijklmnopqrstuvwxyz"Alphabet used to generate two-character jump labels. Earlier characters are used first.
inline-blametableSee belowGit blame rendered at the end of buffer lines. See [editor.inline-blame].
workspace-trusttableSee belowImplicit workspace trust policy. See [editor.workspace-trust].
bufferlinetableSee belowSee [editor.bufferline].
clipboardtableSee belowSee [editor.clipboard].
completiontableSee belowSee [editor.completion].
cursortableSee belowSee [editor.cursor].
diagnosticstableSee belowSee [editor.diagnostics].
filestableSee belowSee [editor.files].
formattableSee belowSee [editor.format].
indenttableSee belowSee [editor.indent].
inline-completiontableSee belowSee [editor.inline-completion].
mousetableSee belowSee [editor.mouse].
rainbow-bracketstableSee belowSee [editor.rainbow-brackets].
scrolltableSee belowSee [editor.scroll].

editor.border-style sets the default border style for panels, popups, menus, and separators. It accepts "none", "plain", "rounded" (the default), "double", "thick", "quadrant-inside", or "quadrant-outside". The style controls the border characters; the theme’s ui.border scope controls panel and popup border colors, falling back to ui.text when omitted.

Individual popups can use their own border-style. Each setting accepts the same styles or "inherit" (the default), which follows editor.border-style. A trusted project’s configuration can use "inherit" to clear a user override for that popup. Omitting the project setting keeps the user preference.

FeatureBorder setting
Contextual information popup, such as keybinding hintseditor.info.border-style
:run-shell-command outputeditor.shell-output.border-style
Command documentation popupeditor.command-line.border-style
Completion menu and its documentation paneleditor.completion.border-style
Hover popup, including syntax inspection hoverseditor.lsp.hover.border-style
Signature help and its documentation separatorseditor.lsp.signature-help.border-style
Code action menueditor.lsp.code-actions.border-style
Code lens command menueditor.lsp.code-lenses.border-style
Blame details popupeditor.inline-blame.border-style
Invalid search pattern popupeditor.search.border-style

Pickers and persistent panels always use editor.border-style.

For example, keep rounded borders elsewhere while hiding hover and completion borders:

[editor]
border-style = "rounded"

[editor.lsp.hover]
border-style = "none"

[editor.completion]
border-style = "none"

A popup’s setting also applies to its documentation panel and internal separators. "none" hides the borders while preserving spacing and scrolling, so text does not shift when borders are disabled.

Changes apply to open popups. Use :set lsp.hover.border-style none to hide hover borders and :set lsp.hover.border-style inherit to restore the global preference. :get lsp.hover.border-style reports the current value, and :toggle lsp.hover.border-style plain none switches between two styles.

[editor.info]

KeyType / accepted valuesDefaultDescription
border-styleborder style or "inherit""inherit"Borders around contextual information popups, such as keybinding hints. See popup borders.

[editor.shell-output]

KeyType / accepted valuesDefaultDescription
border-styleborder style or "inherit""inherit"Borders around :run-shell-command output. See popup borders.

[editor.scroll]

KeyType / accepted valuesDefaultDescription
paddinginteger5Minimum screen lines kept above and below the cursor when possible.
wheel-linesinteger3Lines moved by one scroll-wheel step.
smoothbooleanfalseAnimate page scrolling, view alignment and LSP gotos.
animation-durationmilliseconds180Duration of one smooth scroll animation. 0 jumps immediately.

[editor.mouse]

KeyType / accepted valuesDefaultDescription
enablebooleantrueEnable mouse input.
yank-registercharacter"*"Register used for selections made with the mouse.
middle-click-pastebooleantruePaste the primary selection on middle click.

[editor.clipboard]

KeyType / accepted valuesDefaultDescription
default-yank-registercharacter"\""Register used by yank and paste commands when none is selected explicitly.
providerprovider name or custom tableAuto-detectedClipboard integration. See [editor.clipboard.provider].

[editor.cursor]

KeyType / accepted valuesDefaultDescription
highlight-linebooleanfalseHighlight every line containing a cursor.
highlight-columnbooleanfalseHighlight every column containing a cursor.
block-rendering"software", "native""software"Render the active primary block cursor with the editor theme or the terminal’s cursor appearance.
shapetableAll modes "block"Cursor shape by mode. See [editor.cursor.shape].

[editor.completion]

KeyType / accepted valuesDefaultDescription
border-styleborder style or "inherit""inherit"Completion menu and documentation borders. See popup borders.
auto-triggerbooleantrueShow completion automatically.
snippetsbooleantrueOffer user-defined snippets.
wordtable{ enable = true, trigger-length = 7 }Complete words from open buffers. See [editor.completion.word].
trigger-delaymilliseconds250Delay after typing a word character before completion is shown; use 5 for effectively immediate completion.
preview-insertbooleantrueTemporarily insert the selected completion item while browsing the menu.
trigger-lengthinteger2Minimum word length that triggers automatic completion.
replacebooleanfalseAsk LSP completions to replace the whole word instead of only the text before the cursor.

Path completion is configured by path.enable (default true); word completion has its own [editor.completion.word] table.

[editor.completion.path]

KeyType / accepted valuesDefaultDescription
enablebooleantrueComplete filesystem paths recognized at the cursor.

[editor.format]

KeyType / accepted valuesDefaultDescription
on-savebooleantrueFormat on save when the current language also enables auto-format.
on-typebooleanfalseAsk the language server to format after its trigger characters are typed. Uses a single cursor.

[editor.files]

KeyType / accepted valuesDefaultDescription
auto-savetableDisabledSave on focus loss and/or after a delay. See [editor.files.auto-save].
reloadtableSee belowReload buffers when files change externally. See [editor.files.reload].
watchtableSee belowNative file watching, traversal, and Git refreshes. See [editor.files.watch].
default-line-ending"native", "lf", "crlf", "ff", "cr", or "nel""native"Line ending for new documents. The last three values require the unicode-lines build feature.
editor-configbooleantrueApply supported settings from .editorconfig files.

Saving, autosave, reloads, and native watching are configured in the save, auto-save, reload, and watch subsections.

[editor.inline-completion]

KeyType / accepted valuesDefaultDescription
trigger-delaymilliseconds150Delay after editing before requesting LSP ghost text.
auto-triggerbooleantrueRequest LSP ghost text automatically in insert mode.

[editor.bufferline]

KeyType / accepted valuesDefaultDescription
show"never", "always", or "multiple""never"When to show open buffers at the top of the editor.
separatorstring""Text to display between visible tabs. Style it with ui.bufferline.separator in your theme.

The bufferline scrolls horizontally to keep the active buffer visible when the tabs exceed the window width.

Use :buffer-move-previous, :buffer-move-next, :buffer-move-start, and :buffer-move-end to reorder the current buffer. This order also applies to :buffer-next and :buffer-previous, even when the bufferline is hidden. The buffer picker continues to sort by most recent use.

[editor.files.save]

KeyType / accepted valuesDefaultDescription
insert-final-newlinebooleantrueAdd a final line ending on write when missing.
atomicbooleantrueWrite through a temporary file and replace the original. Safer against interruption, but may confuse file watchers.
trim-final-newlinesbooleanfalseRemove line endings after the final line ending on write.
trim-trailing-whitespacebooleanfalseRemove whitespace before line endings on write.

[editor.indent]

The smart-tab subsection controls syntax-aware Tab behavior.

KeyType / accepted valuesDefaultDescription
smart-tabtableSee belowSyntax-aware Tab behavior. See [editor.indent.smart-tab].
heuristic"simple", "tree-sitter", or "hybrid""hybrid"Indentation strategy. Unavailable strategies fall back from hybrid to tree-sitter to simple.

[editor.diagnostics]

KeyType / accepted valuesDefaultDescription
inlinetableSee belowDiagnostics rendered within buffer text. See [editor.diagnostics.inline].
end-of-linetable{ severity = "hint" }End-of-line diagnostic severity.

[editor.diagnostics.end-of-line]

KeyType / accepted valuesDefaultDescription
severity"disable", "hint", "info", "warning", or "error""hint"Minimum severity shown at the end of a line.

[editor.rainbow-brackets]

KeyType / accepted valuesDefaultDescription
enablebooleanfalseColor matching bracket levels. The language needs a rainbows.scm query.

[editor.breadcrumb]

KeyType / accepted valuesDefaultDescription
enablebooleanfalseShow the breadcrumb bar.
path"full", "file", or "none""full"Include the full path, only the file name, or no path before symbols.
separatorstring" > "Text to display between path and symbol segments. Use "" to hide the separator and ui.breadcrumb.separator to style it in your theme.

[editor.clipboard.provider]

Set provider to "pasteboard", "wayland", "x-clip", "x-sel", "win32-yank", "tmux", "windows", "termux", "termcode", or "none". Availability is platform- and build-dependent. Without an explicit value, Mitos selects a usable provider from the current platform and environment.

A custom provider uses this shape:

[editor.clipboard.provider.custom]
yank = { command = "copy-command", args = ["--clipboard"] }
paste = { command = "paste-command", args = ["--clipboard"] }
yank-primary = { command = "copy-command", args = ["--primary"] }   # optional
paste-primary = { command = "paste-command", args = ["--primary"] } # optional

yank and paste are required. Every command has a required command string and optional args array (default []). Mitos sends yanked text to stdin and reads pasted text from stdout. yank-primary and paste-primary are optional; they handle the primary selection where the platform has one.

[editor.command-line]

KeyType / accepted valuesDefaultDescription
border-styleborder style or "inherit""inherit"Command documentation popup borders. See popup borders.
show"always" or "auto""always"Reserve a command row below the statusline, or reuse the bottom statusline when needed.

To reclaim the idle command row:

[editor.command-line]
show = "auto"

In auto mode, command and search prompts and messages appear over the bottom statusline. Pending keys, counts, macro recording, and workspace-trust indicators use its right side. The statusline returns when the prompt or message is dismissed; opening a prompt does not resize the editing area. This works with both per-view and global statuslines. Change it at runtime with :set command-line.show auto or restore the dedicated row with :set command-line.show always.

[editor.statusline]

Each view has its own statusline by default. Set global = true to show a single statusline at the bottom of the editor for the focused view.

KeyTypeDefault
globalbooleanfalse
leftarray of element names["mode", "activity", "file-name", "read-only-indicator", "file-modification-indicator", "branch", "debug-session"]
rightarray of element names["diagnostics", "selections", "register", "search-position", "spinner", "file-type", "position", "file-encoding"]
separatorstring"│"
mode.colorbooleanfalse
mode.normalstring"NOR"
mode.insertstring"INS"
mode.selectstring"SEL"
diagnosticsseverity array["warning", "error"]
workspace-diagnosticsseverity array["warning", "error"]

Add "separator" to the left or right list to place a separator. Style it with ui.statusline.separator in your theme.

When space is limited, the statusline hides the file type first, shortens paths, branch names, and debug details, then hides optional fields. It keeps the mode, filename, read-only and modified indicators, and cursor position when space allows.

Diagnostics describe the current file by default. To show counts across files, replace "diagnostics" with "workspace-diagnostics" in right. This can be useful with global = true; counts reflect the diagnostics currently reported to Mitos.

The activity element shows when a command is taking a while, with a label such as Formatting or Renaming. It is hidden while idle. The separate spinner element shows language-server progress, such as indexing.

Available statusline elements:

KeyDescription
modeThe current editor mode (mode.normal/mode.insert/mode.select)
spinnerA progress spinner indicating LSP activity
activityA spinner and label while a user command is running
branchThe current branch name or detached commit hash of the opened workspace
file-nameThe opened file’s path relative to the editor workspace; external paths use ~ for the home directory when possible
file-absolute-pathThe absolute path/name of the opened file
file-base-nameThe basename of the opened file
current-working-directoryThe current working directory
file-modification-indicatorThe indicator to show whether the file is modified (a [+] appears when there are unsaved changes)
file-encodingThe encoding of the opened file if it differs from UTF-8
file-line-endingThe file line endings (CRLF or LF)
file-indent-styleThe file indentation style
read-only-indicatorAn indicator that shows [readonly] when a file cannot be written
total-line-numbersThe total line numbers of the opened file
file-typeThe type of the opened file
diagnosticsThe number of warnings and/or errors in the current file
workspace-diagnosticsThe number of warnings and/or errors reported across files
selectionsThe main selection index and selection count, shown only with multiple selections
search-positionLast search match position and count, such as [3/12]; counts above the limit use >N, and unavailable counts use ?
primary-selection-lengthThe number of characters currently in the main selection
positionThe cursor position
position-percentageThe cursor position as a percentage of the total number of lines
separatorThe string defined in editor.statusline.separator (defaults to "│")
spacerInserts a space between elements (multiple/contiguous spacers may be specified)
registerThe current selected register
code-action-hintIndicator for when code actions are available
debug-sessionSelected debugging session, its state, and total session count; hidden when no session exists

[editor.debugger]

KeyTypeDefaultDescription
inline-valuesbooleantrueShow runtime values after source lines in the selected paused frame. See inline debug values.

[editor.lsp]

KeyTypeDefaultDescription
enablebooleantrueEnable LSP integration globally.
workspace-rootsarray of paths[]Workspace-relative directories that stop LSP root discovery.
progress.enablebooleanfalseShow $/progress messages in the command area.
messages.enablebooleantrueShow window/showMessage messages in the command area.
hover.border-styleborder style or "inherit""inherit"Hover popup borders, including syntax inspection hovers. See popup borders.
signature-help.auto-triggerbooleantrueOpen signature help automatically.
signature-help.show-documentationbooleantrueShow documentation in signature help.
signature-help.border-styleborder style or "inherit""inherit"Signature help popup borders and documentation separators. See popup borders.
inlay-hints.enablebooleanfalseRender inlay hints. The server may also require configuration.
document-highlight.auto-triggerbooleantrueHighlight references to the symbol at the cursor.
linked-editingbooleantrueAutomatically edit linked names together, such as opening and closing tags. Requires server support.
inlay-hints.length-limitnon-zero integer or unsetUnsetTruncate displayed inlay hints to this length.
color-swatches.enablebooleantrueRender swatches beside document colors.
code-actions.border-styleborder style or "inherit""inherit"Code action menu borders. See popup borders.
semantic-tokens.enablebooleantrueRefine syntax colors with language-server symbol kinds and traits. See semantic highlighting.
code-lenses.enablebooleantrueShow code lens labels, such as run or test actions, beside code. Use Space l for the commands on the current line.
code-lenses.border-styleborder style or "inherit""inherit"Code lens command menu borders. See popup borders.
completion.snippetsbooleantrueAdvertise and insert LSP snippet completions. A server restart is required after changing it.
references.include-declarationbooleantrueInclude a symbol’s declaration in reference results.

The dotted paths above are feature subsections. For example:

[editor.lsp.messages]
enable = true

[editor.lsp.signature-help]
auto-trigger = true
show-documentation = false

[editor.lsp.inlay-hints]
enable = true
length-limit = 40

[editor.cursor.shape]

normal, insert, and select each accept "block", "bar", or "underline"; all default to "block". Terminals can change only the primary cursor’s shape.

To use the terminal’s block cursor and cursor colors:

[editor.cursor]
block-rendering = "native"

This applies to modes whose shape is "block". Secondary cursors and editor markers shown while a prompt owns the cursor still use the editor theme. Native cursors use a steady shape; cursor trails depend on terminal settings, and animated blinking is not enabled.

[editor.files.reload]

Mitos reloads unmodified buffers when their files change externally, preserving undo history and updating selections in every split. If a buffer has unsaved changes, a prompt offers Enter to reload or Esc to keep the buffer. The same external change prompts only once. Deleted files keep their open buffers; recreating the file can trigger another reload.

KeyDefaultDescription
enabletrueAutomatically reload files changed on disk.
prompt-if-modifiedtruePrompt before reloading a buffer with unsaved changes. When disabled, show a warning instead.
poll.enabletruePeriodically check open files outside native watcher coverage and Git metadata.
poll.interval30000Polling interval in milliseconds, with a minimum of 100.

Files outside watched roots, hidden or ignored files, and files beyond the depth limit are checked when the terminal regains focus and by periodic polling. This also provides a fallback when a native watcher cannot start. Focus checks remain active when poll.enable is false. Git refreshes use the same polling schedule and can continue when buffer auto-reload is disabled.

[editor.files.reload]
enable = true
prompt-if-modified = true

[editor.files.reload.poll]
enable = true
interval = 30000

[editor.files.watch]

Native file events also notify language servers registered for file creation, changes, and deletion. Relative LSP patterns may add watch roots outside the current workspace. Recursive watching defaults to workspaces so starting Mitos in a home directory does not watch the entire home directory.

KeyDefaultDescription
enabletrueEnable native recursive file watching. Buffer polling and focus checks can still run when disabled.
watch-vcstrueRefresh branch names and diff gutters when Git HEAD or branch references change, including linked worktrees.
require-workspacetrueAutomatically watch the working directory only when a workspace is found. Explicit LSP roots are still allowed.
hiddentrueExclude hidden paths, apart from editor/build configuration and the Git metadata needed for refreshes.
ignoretrueRead .ignore files.
git-ignoretrueRead .gitignore files, including nested files.
git-globaltrueRead Git’s global ignore file.
max-depth10Maximum path depth below a watch root. Deeper open files use polling.

The global Mitos ignore file and .mitos/ignore also apply. For watcher-specific rules, use filesentryignore in the Mitos configuration directory or .mitos/filesentryignore in the workspace. These use gitignore syntax and take priority over the other filters. Changes to workspace ignore files refresh the watcher’s filters. Configuration reloads and :cd update watch coverage.

[editor.files.watch]
enable = true
watch-vcs = true
require-workspace = true
hidden = true
ignore = true
git-ignore = true
git-global = true
max-depth = 10

[editor.splits]

KeyType / accepted valuesDefaultDescription
strategy"equal-siblings" or "balanced""equal-siblings"How split pane sizes are balanced.

equal-siblings shares space equally between adjacent panes or groups of panes. Individual panes within a group can remain smaller than their neighbors.

balanced keeps neighboring panes at equal widths or heights as you split, close, resize, or rearrange them. For example, closing a pane in a row of four leaves three equal-width columns. Two stacked panes beside a full-height pane keep two equal-width columns. Sizes may differ slightly to fit whole terminal cells and separators. Changing the strategy keeps the pane arrangement and focus.

[editor.splits]
strategy = "balanced"

Use :set splits.strategy balanced to apply it immediately to existing panes. Use :set splits.strategy equal-siblings to return to the default sizing.

[editor.picker]

KeyType / accepted valuesDefaultDescription
layout"auto" or "centered""auto"auto fills the available area below 200 terminal columns and uses a centered layout on wider terminals. centered always uses 90% of the available width and height. Both reserve the bottom two rows.
show-keybindingsbooleantrueShow shortcuts for picker-specific actions.

This applies to all pickers. See Picker layout.

[editor.file-picker]

KeyTypeDefaultDescription
hiddenbooleantrueIgnore hidden files.
follow-symlinksbooleantrueFollow symbolic links.
deduplicate-linksbooleantrueHide links to files already present in results.
parentsbooleantrueRead ignore files from parent directories.
ignorebooleantrueRead .ignore files.
require-gitbooleantrueApply Git ignore rules only inside a Git repository. Set to false to use .gitignore outside repositories.
git-ignorebooleantrueRead .gitignore files.
git-globalbooleantrueRead Git’s global excludes file.
git-excludebooleantrueRead .git/info/exclude.
max-depthinteger or unsetUnsetMaximum directory recursion depth.

[editor.file-explorer]

KeyTypeDefaultDescription
hiddenbooleanfalseIgnore hidden files.
follow-symlinksbooleanfalseFollow symbolic links.
parentsbooleanfalseRead ignore files from parent directories.
ignorebooleanfalseRead .ignore files.
require-gitbooleantrueApply Git ignore rules only inside a Git repository. Set to false to use .gitignore outside repositories.
git-ignorebooleanfalseRead .gitignore files.
git-globalbooleanfalseRead Git’s global excludes file.
git-excludebooleanfalseRead .git/info/exclude.

[editor.buffer-picker]

KeyType / accepted valuesDefaultDescription
start-position"current" or "previous""current"Initially select the current buffer or the previously focused buffer.

[editor.auto-pairs]

enable defaults to true. Omit pairs to use the built-in delimiter pairs. A pairs table maps each single opening character to its closing character; an empty map enables no pairs. enable = false disables pairing while retaining any configured pairs.

[editor.auto-pairs]
enable = true
pairs = { '(' = ')', '[' = ']', '{' = '}', '"' = '"' }

Legacy booleans and direct character maps remain accepted in config.toml. Per-language auto-pairs in languages.toml accepts a boolean or a direct character map, rather than the editor’s enable/pairs table. For example:

[[language]]
name = "markdown"
auto-pairs = false

[[language]]
name = "rust"
auto-pairs = { '(' = ')', '[' = ']', '{' = '}' }

[editor.files.auto-save]

KeyTypeDefaultDescription
focus-lostbooleanfalseSave when terminal focus moves away from Mitos.
after-delay.enablebooleanfalseSave after no edits occur for the configured delay.
after-delay.timeoutmilliseconds3000Delay used when after-delay.enable is true.

The legacy shorthand editor.auto-save = true enables only focus-lost; it does not enable delayed saving.

[editor.search]

KeyTypeDefaultDescription
border-styleborder style or "inherit""inherit"Invalid search pattern popup borders; search result pickers use the global style. See popup borders.
smart-casebooleantrueSearch case-insensitively unless the pattern contains an uppercase character.
wrap-aroundbooleantrueContinue at the other end of the document after the last match or change.
max-matchesnonnegative integer or "none"100Limit the search-position counting scan; both the match index and total may be capped. "none" removes the match limit, while the time budget still applies.

[editor.rulers]

KeyType / accepted valuesDefaultDescription
columnsarray of integers[]One-based columns at which to draw rulers. A language’s rulers array overrides these columns.
style"background", "glyph""background"Highlight ruler columns or draw visible glyphs.
charactersingle character occupying one terminal column"┊"Character drawn when style = "glyph"; ignored for background rulers.
[editor.rulers]
columns = [81, 121]
style = "glyph"
character = "│"

Rulers appear behind document text and use the ui.virtual.ruler theme style. Glyph rulers show through hidden whitespace; visible whitespace markers cover them. The default "background" style uses only its background color, preserving document text colors. The "glyph" style uses only its foreground color, preserving document backgrounds. If no foreground is defined, glyph rulers use the ruler background color as their foreground. If the required color is missing, rulers fall back to red.

Themes can supply both colors through the same key:

"ui.virtual.ruler" = { bg = "#313244", fg = "#6c7086" }

The legacy editor.rulers = [81, 121] array remains accepted as editor.rulers.columns. Runtime commands accept rulers.columns, rulers.style, and rulers.character; the old rulers path remains an alias for rulers.columns. Use :set rulers.style glyph to switch to glyph rulers or :set rulers.style background to restore background rulers.

[editor.whitespace]

KeyType / accepted valuesDefaultDescription
render"none", "trailing", "all", or table"trailing"Render all whitespace uniformly, or configure kinds separately.
render.default"none", "trailing", or "all""none"Fallback for omitted per-kind rendering values when using a table.
render.space"none", "trailing", or "all"Inherits defaultRender ordinary spaces.
render.nbsp"none", "trailing", or "all"Inherits defaultRender non-breaking spaces.
render.nnbsp"none", "trailing", or "all"Inherits defaultRender narrow non-breaking spaces.
render.tab"none", "trailing", or "all"Inherits defaultRender tabs.
render.newline"none", "trailing", or "all"Inherits defaultRender line endings with "all"; "trailing" keeps them hidden.
characters.spacecharacter"·"Glyph for a space.
characters.nbspcharacter"⍽"Glyph for a non-breaking space.
characters.nnbspcharacter"␣"Glyph for a narrow non-breaking space.
characters.tabcharacter"→"Glyph at the start of a tab.
characters.tabpadcharacter" "Glyph used to fill the rest of a tab.
characters.newlinecharacter"⏎"Glyph for a line ending.

The default "trailing" mode shows whitespace only at the end of a document line, including the last line without a line ending. Interior whitespace and line endings stay hidden.

[editor.indent-guides]

KeyTypeDefaultDescription
renderbooleanfalseRender vertical indent guides.
charactercharacter"│"Guide glyph.
skip-levelsinteger0Indentation levels to omit before drawing guides.

[editor.gutters]

KeyTypeDefaultDescription
layoutarray["diagnostics", "spacer", "line-numbers", "spacer", "diff"]Ordered gutter components. Accepted names are diagnostics, line-numbers, spacer, diff, and code-action-hint.
line-numbers.min-widthinteger3Minimum width of the line-number gutter.

diagnostics, diff, spacer, and code-action-hint currently have no component-specific settings. The diagnostics gutter also displays debugger breakpoints; the code-action gutter indicates available actions.

[editor.soft-wrap]

KeyTypeDefaultDescription
enablebooleanfalseWrap lines wider than the view.
max-wrapinteger20Maximum free columns used to find a word boundary. Also limited to one quarter of the viewport.
max-indent-retaininteger40Maximum indentation carried onto wrapped lines. Also limited to one quarter of the viewport.
wrap-indicatorstring"↪ "Text shown before continuation lines.
wrap-at-text-widthbooleanfalseWrap at editor.text-width when it is narrower than the viewport.

[editor.indent.smart-tab]

KeyTypeDefaultDescription
enablebooleantrueMove to the end of the parent syntax node when non-whitespace precedes the cursor; otherwise insert indentation.
supersede-menubooleanfalseGive smart-tab precedence over completion-menu navigation.

[editor.inline-blame]

KeyTypeDefaultDescription
border-styleborder style or "inherit""inherit"Blame details popup borders. See popup borders.
showstring"never"Display blame on "cursor-line", "all-lines", or hide it with "never".
formatstring"{author}, {time-ago} • {title} • {commit}"Blame message format. See inline blame formatting.

Press Space g t to toggle inline blame off and on, preserving your choice of "all-lines" or "cursor-line". If you have not chosen a display mode, turning it on uses "cursor-line". Blank lines and lines with uncommitted changes do not show inline blame.

[editor.diagnostics.inline]

Severity settings accept "disable", "hint", "info", "warning", or "error".

KeyTypeDefaultDescription
cursor-lineseverity"warning"Minimum severity rendered inline on the primary cursor line. Disabled in insert mode and delayed briefly after moving lines.
other-linesseverity"disable"Minimum severity rendered inline on other lines.
min-diagnostic-widthinteger40Minimum columns reserved for diagnostic text; inline diagnostics are hidden if the view cannot provide this plus the prefix.
prefix-leninteger1Horizontal bars rendered before diagnostic text.
max-wrapinteger20Maximum free columns used to wrap diagnostic text.
max-diagnosticsinteger10Maximum inline diagnostics rendered for one line.

[editor.spelling]

Global options for spell checking. See the Spell checking chapter for the full feature details.

KeyDescriptionDefault
languagesThe dictionaries to check every document against (e.g. ["en_US"]). Empty disables spell checking.[]
wordsExtra accepted words, matched case-insensitively, in addition to the dictionaries.[]
ignore-regexesTokens matching any of these regexes are not checked (for example "^[A-Z0-9_]+$" to skip CONSTANTS).[]
min-word-lengthTokens shorter than this are not checked.1

Per-language settings in languages.toml override these: languages and min-word-length replace the global value, while words and ignore-regexes are added to the global lists.

Example:

[editor.spelling]
languages = ["en_US"]
words = ["Mitos", "tokio"]
ignore-regexes = ["^[A-Z0-9_]+$"]

[editor.completion.word]

KeyTypeDefaultDescription
enablebooleantrueComplete words found in open buffers.
trigger-lengthnon-zero integer7Word length at which this completion source activates.

[terminal]

KeyType / accepted valuesDefaultDescription
true-colorbooleanfalseForce true-color support when detection produces a false negative.
undercurlbooleanfalseForce undercurl support when detection produces a false negative.
keyboard.kitty-protocol"auto", "enabled", or "disabled""auto"Policy for the Kitty enhanced keyboard protocol.
launchertableEnvironment-dependentExternal terminal or multiplexer command. See below.

[terminal.launcher]

KeyTypeDefaultDescription
commandstringEnvironment-dependentExternal terminal or multiplexer executable.
argsarray of strings[]Arguments placed before the command Mitos asks the terminal to run.

Mitos automatically uses a tmux split inside tmux, a Zellij pane inside Zellij, a WezTerm split when its Unix socket is available, a Kitty pane when its remote control socket is configured, or an Alacritty window when its IPC socket is available. On Windows it uses Zellij when running inside it, Windows Terminal when available, or Conhost as the fallback. On other terminals, configure a launcher if your debug adapter needs an external terminal.

[editor.workspace-trust]

KeyType / accepted valuesDefaultDescription
level"none", "servers", or "insecure""servers"What may run without a per-workspace grant. servers permits LSP and DAP processes but still gates project config and repository-local Git configuration.
promptbooleantrueShow the trust modal. The restricted-workspace indicator is independent of this setting.
trustedarray of glob strings[]Trust matching workspace paths without a grant. This skips .mitos change detection and should be used cautiously.

This table is user-scope only. See Workspace trust for the security model and recommended configurations.

[keys]

[keys.normal], [keys.insert], and [keys.select] are maps whose keys are key names and whose values are a static command, a :typable-command, a key macro beginning with @, a sequence of commands, or another table forming a minor mode. There is no fixed list of entries: omitted bindings retain their built-in value. See Key remapping for key syntax, component maps, and examples.

[commands]

Each key defines a command-mode command. Its value is one command string, an array of command strings, or a table with these settings:

KeyTypeDefaultDescription
commandsarray of stringsRequiredBuilt-in typable/static commands to execute in order. A key macro may be used only by itself.
descstring or unsetUnsetMarkdown description displayed in command help.
acceptsstring or unsetUnsetArgument placeholder shown in command help.
completerbuilt-in typable command or unsetUnsetReuse that command’s argument completion.

See Custom commands for argument expansion, visibility, and built-in-command shadowing.

languages.toml reference

languages.toml has three top-level entries: [[language]] definitions, [language-server.<name>] definitions, and [[grammar]] sources. The optional use-grammars selector affects grammar fetch/build commands. User and trusted project entries are merged over the built-in language definitions.

Defaults below are schema fallbacks for a newly defined language. A built-in language may already set a different effective value before user and project overrides are merged.

See Languages for file detection, root selection, LSP feature routing, formatters, and complete examples.

languages.toml retains its existing keys, including auto-format, path-completion, and word-completion. The feature-table restructuring applies to config.toml for now.

[[language]]

KeyType / defaultDescription
namestring; requiredLanguage name and merge key.
language-idstring; defaults to nameLanguage identifier sent to language servers.
scopestring; required for a new languageTextMate-style scope such as source.rust.
file-typesarray; required for a new languageFile extensions or { glob = "..." } matchers.
shebangsstring array; []Interpreter names recognized in shebangs.
rootsglob array; []Markers used to choose an LSP working directory.
comment-tokensstring or string array; unsetLine-comment tokens. comment-token is accepted as a compatibility alias.
block-comment-tokenstable or table array; unset{ start = "...", end = "..." } pairs for block comments.
text-widthinteger; inherits editorLanguage override for editor.text-width.
soft-wraptable; inherits editorLanguage override using the same keys as editor.soft-wrap.
auto-formatboolean; inherits editorPermit formatting this language on save. Global editor.format.on-save must also be enabled.
code-actions-on-savestring array; unsetLSP code-action kinds run in order on save.
formattertable; unsetExternal formatter. command is required; args defaults to [].
path-completionboolean; inherits editorOverride editor.completion.path.enable.
spellingtable; inherits editorlanguages and min-word-length replace global values; words and ignore-regexes extend them. See spell checking.
word-completiontable; inherits editorOverride enable and/or trigger-length from editor.completion.word.
diagnostic-severity"hint", "info", "warning", or "error"; "hint"Minimum accepted diagnostic severity.
grammarstring; defaults to nameTree-sitter grammar name.
injection-regexregex string; unsetMatch this language at tree-sitter injection sites.
language-serversarray; []Server names, { name = "...", only-features = [...], except-features = [...] } entries, or { alternatives = [...] } groups that start one candidate in order. Alternatives accept names or feature-filtered entries.
indenttable; unsetRequires tab-width from 1 through 16 and unit, the inserted indentation string.
debuggertable; unsetDebug adapter definition. See below.
auto-pairsboolean or character map; inherits editorLanguage-specific delimiter pairs.
rulersinteger array; inherits editorLanguage-specific ruler columns.
workspace-lsp-rootspath array; inherits editorLanguage-specific workspace-relative LSP search ceilings.
persistent-diagnostic-sourcesstring array; []Diagnostic sources whose unchanged diagnostics Mitos may track across edits.
rainbow-bracketsboolean; inherits editorLanguage override for rainbow brackets.

[language.debugger]

See Debugging for setup, launch templates, and debugging commands.

KeyType / defaultDescription
namestring; requiredAdapter name.
transport"stdio" or "tcp"; requiredHow Mitos communicates with the adapter.
commandstring; ""Adapter executable.
argsstring array; []Adapter arguments.
port-argstring; unsetFor TCP, an argument template whose {} is replaced with an ephemeral local port.
templatesarray; requiredLaunch/attach templates exposed by Mitos.
quirks.absolute_pathsboolean; falseTreat paths received from the adapter as absolute. This key retains its underscore spelling.

Each [[language.debugger.templates]] has required name, request, and adapter-specific args values. Optional completion entries are either a string or { name = "...", completion = "...", default = "..." }; all three fields in that detailed form are optional.

Set request to "launch" to start a program or "attach" to connect to a running one. Use {0}, {1}, and so on in args for answers to the completion prompts. Defaults apply when an answer is omitted or empty. A whole placeholder containing an unsigned integer becomes a JSON number, for example a process ID or port. Embedded placeholders remain strings.

[language-server.<name>]

KeyType / defaultDescription
commandstring; requiredServer executable. It must be available on PATH unless an absolute path is used.
argsstring array; []Server arguments.
environmentstring map; {}Environment variables supplied to the server.
configtable; unsetServer-specific initialization/settings object.
timeoutseconds; 20Maximum request duration.
required-root-patternsglob array; unsetStart the server only if at least one pattern exists in the selected LSP root. This validates a root; it does not select one.

[[grammar]] and use-grammars

KeyTypeDescription
use-grammars.onlystring arrayFetch/build only the named grammars. Mutually exclusive with except.
use-grammars.exceptstring arrayFetch/build every grammar except those named. Mutually exclusive with only.
grammar.namestringGrammar name.
grammar.source.gitURLGit repository containing the grammar.
grammar.source.revstringCommit or tag to fetch. Required with git.
grammar.source.subpathpathOptional subdirectory within a multi-grammar repository.
grammar.source.pathpathLocal grammar directory, as an alternative to the Git source keys.

use-grammars must appear before the array-of-table declarations in TOML. When omitted, every configured grammar is fetched and built.

Inline completions

See Completion and snippets for setup and bindings. Inline suggestions use ui.virtual.inline-completion, falling back to ui.virtual.inlay-hint when that theme scope is absent.