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 userconfig.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:
| Key | Type | Default | Description |
|---|---|---|---|
theme | string or table | { light = "modus_operandi", dark = "modus_vivendi" } | Theme name, or { light = "...", dark = "...", fallback = "..." }. fallback is optional and defaults to dark. See Themes. |
editor | table | See below | Shared editor behavior and UI settings. |
terminal | table | See below | Terminal capabilities, keyboard protocol, and external launcher. |
keys | table | Built-in keymap | Editor mode bindings and component bindings for pickers, prompts, menus, and popups. Entries merge with the built-in keymap. See Key remapping. |
commands | table | {} | 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.
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
welcome-screen | boolean | true | Show the welcome screen when Mitos starts without a file. |
shell | array of strings | Unix: ["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. |
gutters | array or table | ["diagnostics", "spacer", "line-numbers", "spacer", "diff"] | Gutter layout and options. See [editor.gutters]. |
auto-pairs | table | { enable = true } | Insert matching delimiters. See [editor.auto-pairs]. |
spelling | table | Disabled | Dictionaries, accepted words, and token filters. See [editor.spelling]. |
text-width | integer | 80 | Width used by :reflow and optionally soft wrapping. |
idle-timeout | milliseconds | 250 | Idle delay used by editor UI timers. |
continue-comments | boolean | true | Continue a line comment when Enter creates a new line inside it. |
auto-info | boolean | true | Display contextual information popups. |
auto-info-delay | milliseconds | 0 | Wait this long after a key prefix before showing its bindings. Applies when auto-info is enabled. Sticky keymaps and other contextual popups appear immediately. |
icons | boolean | false | Show 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. |
info | table | { border-style = "inherit" } | Contextual information popup appearance. See [editor.info]. |
shell-output | table | { border-style = "inherit" } | Shell command output popup appearance. See [editor.shell-output]. |
picker | table | See below | Shared picker appearance. See [editor.picker]. |
splits | table | See below | Pane sizing. See [editor.splits]. |
file-picker | table | See below | File-picker and global-search traversal. See [editor.file-picker]. |
file-explorer | table | See below | File-explorer traversal. See [editor.file-explorer]. |
buffer-picker | table | See below | Initial selection in the buffer picker. See [editor.buffer-picker]. |
command-line | table | { show = "always", border-style = "inherit" } | Command row visibility and help popup appearance. See [editor.command-line]. |
statusline | table | See below | Statusline layout and labels. See [editor.statusline]. |
search | table | See below | Search matching and wrap behavior. See [editor.search]. |
lsp | table | See below | Global LSP behavior. See [editor.lsp]. |
debugger | table | See below | Runtime value display. See [editor.debugger]. |
rulers | table | See below | Guide columns and glyph. See [editor.rulers]. |
whitespace | table | See below | Visible whitespace rendering. See [editor.whitespace]. |
breadcrumb | table | See below | Breadcrumb navigation bar. See [editor.breadcrumb]. |
indent-guides | table | See below | Vertical indentation guides. See [editor.indent-guides]. |
soft-wrap | table | See below | Soft wrapping. See [editor.soft-wrap]. |
jump-label-alphabet | string of unique characters | "abcdefghijklmnopqrstuvwxyz" | Alphabet used to generate two-character jump labels. Earlier characters are used first. |
inline-blame | table | See below | Git blame rendered at the end of buffer lines. See [editor.inline-blame]. |
workspace-trust | table | See below | Implicit workspace trust policy. See [editor.workspace-trust]. |
bufferline | table | See below | See [editor.bufferline]. |
clipboard | table | See below | See [editor.clipboard]. |
completion | table | See below | See [editor.completion]. |
cursor | table | See below | See [editor.cursor]. |
diagnostics | table | See below | See [editor.diagnostics]. |
files | table | See below | See [editor.files]. |
format | table | See below | See [editor.format]. |
indent | table | See below | See [editor.indent]. |
inline-completion | table | See below | See [editor.inline-completion]. |
mouse | table | See below | See [editor.mouse]. |
rainbow-brackets | table | See below | See [editor.rainbow-brackets]. |
scroll | table | See below | See [editor.scroll]. |
Popup borders
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.
| Feature | Border setting |
|---|---|
| Contextual information popup, such as keybinding hints | editor.info.border-style |
:run-shell-command output | editor.shell-output.border-style |
| Command documentation popup | editor.command-line.border-style |
| Completion menu and its documentation panel | editor.completion.border-style |
| Hover popup, including syntax inspection hovers | editor.lsp.hover.border-style |
| Signature help and its documentation separators | editor.lsp.signature-help.border-style |
| Code action menu | editor.lsp.code-actions.border-style |
| Code lens command menu | editor.lsp.code-lenses.border-style |
| Blame details popup | editor.inline-blame.border-style |
| Invalid search pattern popup | editor.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]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
border-style | border style or "inherit" | "inherit" | Borders around contextual information popups, such as keybinding hints. See popup borders. |
[editor.shell-output]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
border-style | border style or "inherit" | "inherit" | Borders around :run-shell-command output. See popup borders. |
[editor.scroll]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
padding | integer | 5 | Minimum screen lines kept above and below the cursor when possible. |
wheel-lines | integer | 3 | Lines moved by one scroll-wheel step. |
smooth | boolean | false | Animate page scrolling, view alignment and LSP gotos. |
animation-duration | milliseconds | 180 | Duration of one smooth scroll animation. 0 jumps immediately. |
[editor.mouse]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
enable | boolean | true | Enable mouse input. |
yank-register | character | "*" | Register used for selections made with the mouse. |
middle-click-paste | boolean | true | Paste the primary selection on middle click. |
[editor.clipboard]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
default-yank-register | character | "\"" | Register used by yank and paste commands when none is selected explicitly. |
provider | provider name or custom table | Auto-detected | Clipboard integration. See [editor.clipboard.provider]. |
[editor.cursor]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
highlight-line | boolean | false | Highlight every line containing a cursor. |
highlight-column | boolean | false | Highlight 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. |
shape | table | All modes "block" | Cursor shape by mode. See [editor.cursor.shape]. |
[editor.completion]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
border-style | border style or "inherit" | "inherit" | Completion menu and documentation borders. See popup borders. |
auto-trigger | boolean | true | Show completion automatically. |
snippets | boolean | true | Offer user-defined snippets. |
word | table | { enable = true, trigger-length = 7 } | Complete words from open buffers. See [editor.completion.word]. |
trigger-delay | milliseconds | 250 | Delay after typing a word character before completion is shown; use 5 for effectively immediate completion. |
preview-insert | boolean | true | Temporarily insert the selected completion item while browsing the menu. |
trigger-length | integer | 2 | Minimum word length that triggers automatic completion. |
replace | boolean | false | Ask 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]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
enable | boolean | true | Complete filesystem paths recognized at the cursor. |
[editor.format]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
on-save | boolean | true | Format on save when the current language also enables auto-format. |
on-type | boolean | false | Ask the language server to format after its trigger characters are typed. Uses a single cursor. |
[editor.files]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
auto-save | table | Disabled | Save on focus loss and/or after a delay. See [editor.files.auto-save]. |
reload | table | See below | Reload buffers when files change externally. See [editor.files.reload]. |
watch | table | See below | Native 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-config | boolean | true | Apply 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]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
trigger-delay | milliseconds | 150 | Delay after editing before requesting LSP ghost text. |
auto-trigger | boolean | true | Request LSP ghost text automatically in insert mode. |
[editor.bufferline]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
show | "never", "always", or "multiple" | "never" | When to show open buffers at the top of the editor. |
separator | string | "" | 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]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
insert-final-newline | boolean | true | Add a final line ending on write when missing. |
atomic | boolean | true | Write through a temporary file and replace the original. Safer against interruption, but may confuse file watchers. |
trim-final-newlines | boolean | false | Remove line endings after the final line ending on write. |
trim-trailing-whitespace | boolean | false | Remove whitespace before line endings on write. |
[editor.indent]
The smart-tab subsection controls syntax-aware Tab behavior.
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
smart-tab | table | See below | Syntax-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]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
inline | table | See below | Diagnostics rendered within buffer text. See [editor.diagnostics.inline]. |
end-of-line | table | { severity = "hint" } | End-of-line diagnostic severity. |
[editor.diagnostics.end-of-line]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
severity | "disable", "hint", "info", "warning", or "error" | "hint" | Minimum severity shown at the end of a line. |
[editor.rainbow-brackets]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
enable | boolean | false | Color matching bracket levels. The language needs a rainbows.scm query. |
[editor.breadcrumb]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
enable | boolean | false | Show the breadcrumb bar. |
path | "full", "file", or "none" | "full" | Include the full path, only the file name, or no path before symbols. |
separator | string | " > " | 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]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
border-style | border 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.
| Key | Type | Default |
|---|---|---|
global | boolean | false |
left | array of element names | ["mode", "activity", "file-name", "read-only-indicator", "file-modification-indicator", "branch", "debug-session"] |
right | array of element names | ["diagnostics", "selections", "register", "search-position", "spinner", "file-type", "position", "file-encoding"] |
separator | string | "│" |
mode.color | boolean | false |
mode.normal | string | "NOR" |
mode.insert | string | "INS" |
mode.select | string | "SEL" |
diagnostics | severity array | ["warning", "error"] |
workspace-diagnostics | severity 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:
| Key | Description |
|---|---|
mode | The current editor mode (mode.normal/mode.insert/mode.select) |
spinner | A progress spinner indicating LSP activity |
activity | A spinner and label while a user command is running |
branch | The current branch name or detached commit hash of the opened workspace |
file-name | The opened file’s path relative to the editor workspace; external paths use ~ for the home directory when possible |
file-absolute-path | The absolute path/name of the opened file |
file-base-name | The basename of the opened file |
current-working-directory | The current working directory |
file-modification-indicator | The indicator to show whether the file is modified (a [+] appears when there are unsaved changes) |
file-encoding | The encoding of the opened file if it differs from UTF-8 |
file-line-ending | The file line endings (CRLF or LF) |
file-indent-style | The file indentation style |
read-only-indicator | An indicator that shows [readonly] when a file cannot be written |
total-line-numbers | The total line numbers of the opened file |
file-type | The type of the opened file |
diagnostics | The number of warnings and/or errors in the current file |
workspace-diagnostics | The number of warnings and/or errors reported across files |
selections | The main selection index and selection count, shown only with multiple selections |
search-position | Last search match position and count, such as [3/12]; counts above the limit use >N, and unavailable counts use ? |
primary-selection-length | The number of characters currently in the main selection |
position | The cursor position |
position-percentage | The cursor position as a percentage of the total number of lines |
separator | The string defined in editor.statusline.separator (defaults to "│") |
spacer | Inserts a space between elements (multiple/contiguous spacers may be specified) |
register | The current selected register |
code-action-hint | Indicator for when code actions are available |
debug-session | Selected debugging session, its state, and total session count; hidden when no session exists |
[editor.debugger]
| Key | Type | Default | Description |
|---|---|---|---|
inline-values | boolean | true | Show runtime values after source lines in the selected paused frame. See inline debug values. |
[editor.lsp]
| Key | Type | Default | Description |
|---|---|---|---|
enable | boolean | true | Enable LSP integration globally. |
workspace-roots | array of paths | [] | Workspace-relative directories that stop LSP root discovery. |
progress.enable | boolean | false | Show $/progress messages in the command area. |
messages.enable | boolean | true | Show window/showMessage messages in the command area. |
hover.border-style | border style or "inherit" | "inherit" | Hover popup borders, including syntax inspection hovers. See popup borders. |
signature-help.auto-trigger | boolean | true | Open signature help automatically. |
signature-help.show-documentation | boolean | true | Show documentation in signature help. |
signature-help.border-style | border style or "inherit" | "inherit" | Signature help popup borders and documentation separators. See popup borders. |
inlay-hints.enable | boolean | false | Render inlay hints. The server may also require configuration. |
document-highlight.auto-trigger | boolean | true | Highlight references to the symbol at the cursor. |
linked-editing | boolean | true | Automatically edit linked names together, such as opening and closing tags. Requires server support. |
inlay-hints.length-limit | non-zero integer or unset | Unset | Truncate displayed inlay hints to this length. |
color-swatches.enable | boolean | true | Render swatches beside document colors. |
code-actions.border-style | border style or "inherit" | "inherit" | Code action menu borders. See popup borders. |
semantic-tokens.enable | boolean | true | Refine syntax colors with language-server symbol kinds and traits. See semantic highlighting. |
code-lenses.enable | boolean | true | Show code lens labels, such as run or test actions, beside code. Use Space l for the commands on the current line. |
code-lenses.border-style | border style or "inherit" | "inherit" | Code lens command menu borders. See popup borders. |
completion.snippets | boolean | true | Advertise and insert LSP snippet completions. A server restart is required after changing it. |
references.include-declaration | boolean | true | Include 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.
| Key | Default | Description |
|---|---|---|
enable | true | Automatically reload files changed on disk. |
prompt-if-modified | true | Prompt before reloading a buffer with unsaved changes. When disabled, show a warning instead. |
poll.enable | true | Periodically check open files outside native watcher coverage and Git metadata. |
poll.interval | 30000 | Polling 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.
| Key | Default | Description |
|---|---|---|
enable | true | Enable native recursive file watching. Buffer polling and focus checks can still run when disabled. |
watch-vcs | true | Refresh branch names and diff gutters when Git HEAD or branch references change, including linked worktrees. |
require-workspace | true | Automatically watch the working directory only when a workspace is found. Explicit LSP roots are still allowed. |
hidden | true | Exclude hidden paths, apart from editor/build configuration and the Git metadata needed for refreshes. |
ignore | true | Read .ignore files. |
git-ignore | true | Read .gitignore files, including nested files. |
git-global | true | Read Git’s global ignore file. |
max-depth | 10 | Maximum 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]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
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]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
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-keybindings | boolean | true | Show shortcuts for picker-specific actions. |
This applies to all pickers. See Picker layout.
[editor.file-picker]
| Key | Type | Default | Description |
|---|---|---|---|
hidden | boolean | true | Ignore hidden files. |
follow-symlinks | boolean | true | Follow symbolic links. |
deduplicate-links | boolean | true | Hide links to files already present in results. |
parents | boolean | true | Read ignore files from parent directories. |
ignore | boolean | true | Read .ignore files. |
require-git | boolean | true | Apply Git ignore rules only inside a Git repository. Set to false to use .gitignore outside repositories. |
git-ignore | boolean | true | Read .gitignore files. |
git-global | boolean | true | Read Git’s global excludes file. |
git-exclude | boolean | true | Read .git/info/exclude. |
max-depth | integer or unset | Unset | Maximum directory recursion depth. |
[editor.file-explorer]
| Key | Type | Default | Description |
|---|---|---|---|
hidden | boolean | false | Ignore hidden files. |
follow-symlinks | boolean | false | Follow symbolic links. |
parents | boolean | false | Read ignore files from parent directories. |
ignore | boolean | false | Read .ignore files. |
require-git | boolean | true | Apply Git ignore rules only inside a Git repository. Set to false to use .gitignore outside repositories. |
git-ignore | boolean | false | Read .gitignore files. |
git-global | boolean | false | Read Git’s global excludes file. |
git-exclude | boolean | false | Read .git/info/exclude. |
[editor.buffer-picker]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
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]
| Key | Type | Default | Description |
|---|---|---|---|
focus-lost | boolean | false | Save when terminal focus moves away from Mitos. |
after-delay.enable | boolean | false | Save after no edits occur for the configured delay. |
after-delay.timeout | milliseconds | 3000 | Delay 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]
| Key | Type | Default | Description |
|---|---|---|---|
border-style | border style or "inherit" | "inherit" | Invalid search pattern popup borders; search result pickers use the global style. See popup borders. |
smart-case | boolean | true | Search case-insensitively unless the pattern contains an uppercase character. |
wrap-around | boolean | true | Continue at the other end of the document after the last match or change. |
max-matches | nonnegative integer or "none" | 100 | Limit 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]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
columns | array 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. |
character | single 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]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
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 default | Render ordinary spaces. |
render.nbsp | "none", "trailing", or "all" | Inherits default | Render non-breaking spaces. |
render.nnbsp | "none", "trailing", or "all" | Inherits default | Render narrow non-breaking spaces. |
render.tab | "none", "trailing", or "all" | Inherits default | Render tabs. |
render.newline | "none", "trailing", or "all" | Inherits default | Render line endings with "all"; "trailing" keeps them hidden. |
characters.space | character | "·" | Glyph for a space. |
characters.nbsp | character | "⍽" | Glyph for a non-breaking space. |
characters.nnbsp | character | "␣" | Glyph for a narrow non-breaking space. |
characters.tab | character | "→" | Glyph at the start of a tab. |
characters.tabpad | character | " " | Glyph used to fill the rest of a tab. |
characters.newline | character | "⏎" | 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]
| Key | Type | Default | Description |
|---|---|---|---|
render | boolean | false | Render vertical indent guides. |
character | character | "│" | Guide glyph. |
skip-levels | integer | 0 | Indentation levels to omit before drawing guides. |
[editor.gutters]
| Key | Type | Default | Description |
|---|---|---|---|
layout | array | ["diagnostics", "spacer", "line-numbers", "spacer", "diff"] | Ordered gutter components. Accepted names are diagnostics, line-numbers, spacer, diff, and code-action-hint. |
line-numbers.min-width | integer | 3 | Minimum 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]
| Key | Type | Default | Description |
|---|---|---|---|
enable | boolean | false | Wrap lines wider than the view. |
max-wrap | integer | 20 | Maximum free columns used to find a word boundary. Also limited to one quarter of the viewport. |
max-indent-retain | integer | 40 | Maximum indentation carried onto wrapped lines. Also limited to one quarter of the viewport. |
wrap-indicator | string | "↪ " | Text shown before continuation lines. |
wrap-at-text-width | boolean | false | Wrap at editor.text-width when it is narrower than the viewport. |
[editor.indent.smart-tab]
| Key | Type | Default | Description |
|---|---|---|---|
enable | boolean | true | Move to the end of the parent syntax node when non-whitespace precedes the cursor; otherwise insert indentation. |
supersede-menu | boolean | false | Give smart-tab precedence over completion-menu navigation. |
[editor.inline-blame]
| Key | Type | Default | Description |
|---|---|---|---|
border-style | border style or "inherit" | "inherit" | Blame details popup borders. See popup borders. |
show | string | "never" | Display blame on "cursor-line", "all-lines", or hide it with "never". |
format | string | "{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".
| Key | Type | Default | Description |
|---|---|---|---|
cursor-line | severity | "warning" | Minimum severity rendered inline on the primary cursor line. Disabled in insert mode and delayed briefly after moving lines. |
other-lines | severity | "disable" | Minimum severity rendered inline on other lines. |
min-diagnostic-width | integer | 40 | Minimum columns reserved for diagnostic text; inline diagnostics are hidden if the view cannot provide this plus the prefix. |
prefix-len | integer | 1 | Horizontal bars rendered before diagnostic text. |
max-wrap | integer | 20 | Maximum free columns used to wrap diagnostic text. |
max-diagnostics | integer | 10 | Maximum inline diagnostics rendered for one line. |
[editor.spelling]
Global options for spell checking. See the Spell checking chapter for the full feature details.
| Key | Description | Default |
|---|---|---|
languages | The dictionaries to check every document against (e.g. ["en_US"]). Empty disables spell checking. | [] |
words | Extra accepted words, matched case-insensitively, in addition to the dictionaries. | [] |
ignore-regexes | Tokens matching any of these regexes are not checked (for example "^[A-Z0-9_]+$" to skip CONSTANTS). | [] |
min-word-length | Tokens 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]
| Key | Type | Default | Description |
|---|---|---|---|
enable | boolean | true | Complete words found in open buffers. |
trigger-length | non-zero integer | 7 | Word length at which this completion source activates. |
[terminal]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
true-color | boolean | false | Force true-color support when detection produces a false negative. |
undercurl | boolean | false | Force undercurl support when detection produces a false negative. |
keyboard.kitty-protocol | "auto", "enabled", or "disabled" | "auto" | Policy for the Kitty enhanced keyboard protocol. |
launcher | table | Environment-dependent | External terminal or multiplexer command. See below. |
[terminal.launcher]
| Key | Type | Default | Description |
|---|---|---|---|
command | string | Environment-dependent | External terminal or multiplexer executable. |
args | array 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]
| Key | Type / accepted values | Default | Description |
|---|---|---|---|
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. |
prompt | boolean | true | Show the trust modal. The restricted-workspace indicator is independent of this setting. |
trusted | array 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:
| Key | Type | Default | Description |
|---|---|---|---|
commands | array of strings | Required | Built-in typable/static commands to execute in order. A key macro may be used only by itself. |
desc | string or unset | Unset | Markdown description displayed in command help. |
accepts | string or unset | Unset | Argument placeholder shown in command help. |
completer | built-in typable command or unset | Unset | Reuse 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]]
| Key | Type / default | Description |
|---|---|---|
name | string; required | Language name and merge key. |
language-id | string; defaults to name | Language identifier sent to language servers. |
scope | string; required for a new language | TextMate-style scope such as source.rust. |
file-types | array; required for a new language | File extensions or { glob = "..." } matchers. |
shebangs | string array; [] | Interpreter names recognized in shebangs. |
roots | glob array; [] | Markers used to choose an LSP working directory. |
comment-tokens | string or string array; unset | Line-comment tokens. comment-token is accepted as a compatibility alias. |
block-comment-tokens | table or table array; unset | { start = "...", end = "..." } pairs for block comments. |
text-width | integer; inherits editor | Language override for editor.text-width. |
soft-wrap | table; inherits editor | Language override using the same keys as editor.soft-wrap. |
auto-format | boolean; inherits editor | Permit formatting this language on save. Global editor.format.on-save must also be enabled. |
code-actions-on-save | string array; unset | LSP code-action kinds run in order on save. |
formatter | table; unset | External formatter. command is required; args defaults to []. |
path-completion | boolean; inherits editor | Override editor.completion.path.enable. |
spelling | table; inherits editor | languages and min-word-length replace global values; words and ignore-regexes extend them. See spell checking. |
word-completion | table; inherits editor | Override enable and/or trigger-length from editor.completion.word. |
diagnostic-severity | "hint", "info", "warning", or "error"; "hint" | Minimum accepted diagnostic severity. |
grammar | string; defaults to name | Tree-sitter grammar name. |
injection-regex | regex string; unset | Match this language at tree-sitter injection sites. |
language-servers | array; [] | Server names, { name = "...", only-features = [...], except-features = [...] } entries, or { alternatives = [...] } groups that start one candidate in order. Alternatives accept names or feature-filtered entries. |
indent | table; unset | Requires tab-width from 1 through 16 and unit, the inserted indentation string. |
debugger | table; unset | Debug adapter definition. See below. |
auto-pairs | boolean or character map; inherits editor | Language-specific delimiter pairs. |
rulers | integer array; inherits editor | Language-specific ruler columns. |
workspace-lsp-roots | path array; inherits editor | Language-specific workspace-relative LSP search ceilings. |
persistent-diagnostic-sources | string array; [] | Diagnostic sources whose unchanged diagnostics Mitos may track across edits. |
rainbow-brackets | boolean; inherits editor | Language override for rainbow brackets. |
[language.debugger]
See Debugging for setup, launch templates, and debugging commands.
| Key | Type / default | Description |
|---|---|---|
name | string; required | Adapter name. |
transport | "stdio" or "tcp"; required | How Mitos communicates with the adapter. |
command | string; "" | Adapter executable. |
args | string array; [] | Adapter arguments. |
port-arg | string; unset | For TCP, an argument template whose {} is replaced with an ephemeral local port. |
templates | array; required | Launch/attach templates exposed by Mitos. |
quirks.absolute_paths | boolean; false | Treat 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>]
| Key | Type / default | Description |
|---|---|---|
command | string; required | Server executable. It must be available on PATH unless an absolute path is used. |
args | string array; [] | Server arguments. |
environment | string map; {} | Environment variables supplied to the server. |
config | table; unset | Server-specific initialization/settings object. |
timeout | seconds; 20 | Maximum request duration. |
required-root-patterns | glob array; unset | Start 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
| Key | Type | Description |
|---|---|---|
use-grammars.only | string array | Fetch/build only the named grammars. Mutually exclusive with except. |
use-grammars.except | string array | Fetch/build every grammar except those named. Mutually exclusive with only. |
grammar.name | string | Grammar name. |
grammar.source.git | URL | Git repository containing the grammar. |
grammar.source.rev | string | Commit or tag to fetch. Required with git. |
grammar.source.subpath | path | Optional subdirectory within a multi-grammar repository. |
grammar.source.path | path | Local 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.