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

Settings Reference

Generated by cargo run --example list_commands -- --write (T305, tasks.md) — do not edit by hand. Every Settings field: its persisted key (the flat TOML key in config.toml), its Rust type, its default value, and its doc comment.

KeyTypeDefaultDescription
line_numbersbooltrueShow the line-number gutter.
relative_line_numbersboolfalseShow line numbers relative to the cursor line (hybrid: cursor line absolute).
show_whitespaceboolfalseRender visible glyphs for whitespace (space, tab, line ending).
soft_wrapboolfalseWrap long lines across screen rows instead of scrolling horizontally.
rainbow_bracketsboolfalseColor matching brackets by nesting depth (rainbow brackets).
highlight_wordboolfalsePassively highlight every occurrence of the word under the cursor.
prose_soft_wrapbooltrueSoft-wrap prose (Markdown and Org files) even when soft_wrap is off, so paragraphs stay readable beside the docks. A file’s language table or modeline can still turn wrapping off. On by default.
show_explorerbooltrueShow the file explorer on startup.
show_messagesbooltrueShow the message drawer on startup.
show_bottom_dockbooltrueShow the bottom dock (log/output/data panel).
show_status_barbooltrueShow the bottom status bar.
show_breadcrumbsboolfalseShow the breadcrumb bar (file ▸ enclosing symbol) above the editor.
show_outline_dockboolfalseShow the code-outline sidebar (symbol list that follows the cursor).
show_scrollbarbooltrueShow the editor’s right-side scroll bar.
show_minimapboolfalseShow a code-overview minimap column at the right of the editor.
show_menu_tooltipsbooltrueShow hover tooltips (help text) on the menu bar’s menus and items.
show_scrollbar_markersbooltrueMark the scroll bar track where git changes, diagnostics and search matches are.
preview_tabsbooltrueOpen single-clicked / arrow-scanned files in an ephemeral preview tab.
sticky_search_highlightbooltrueKeep search-match highlights visible after the Find box closes (“sticky” highlights), until they are explicitly toggled off. When false, closing Find clears the highlights.
ai_diff_reviewbooltrueReview AI replace transforms (Annotate / Improve) as an accept/reject diff before applying, instead of overwriting the text immediately. On by default.
trim_trailing_whitespacebooltrueOn save, strip trailing spaces/tabs from every line.
ensure_final_newlinebooltrueOn save, append a final newline if the file does not end with one.
format_on_saveboolfalseOn save, run the language server’s formatter (when the file has one).
prettier_languagesVec<String>[]Languages formatted with the user’s own Prettier (T683) by Format Document and format-on-save, instead of the language server. Keys are Prettier language ids (javascript, typescript, json, css, html, markdown, yaml, graphql, handlebars). Empty (opt-in) by default.
auto_saveAutoSave"off"When to save dirty file-backed buffers on their own: "off", "interval" (the active buffer every few seconds) or "focus_lost" (every buffer when the terminal loses focus, T628). The old true / false still load, as "interval" / "off".
sticky_scrollbooltruePin the enclosing scope’s header line at the top of the editor while scrolling (sticky scroll).
persistent_undobooltruePersist each file’s undo tree across sessions (restored on reopen when the file content still matches).
local_history_keepusize50How many timestamped snapshots Local History (T720) keeps per file; one is taken on each save that changed the text, and File -> Local History browses them. 0 turns Local History off.
large_file_mbu6450Ask before opening a file larger than this many megabytes (T571); 0 sets no limit of its own. A file over 500 MiB always asks, with a memory warning, and one over 1 GiB opens in the Large File Viewer (T830).
read_only_pathsVec<String>["~/.cargo/registry/**","~/.cargo/git/**","~/.rustup/**","/nix/store/**","/opt/homebrew/Cellar/**","/usr/local/Cellar/**","**/node_modules/**","**/site-packages/**"]Path globs that open read-only (T662): dependency and toolchain sources Go to Definition lands in. ~/ is the home directory and ** spans directories; View → Read Only still unlocks a tab.
ephemeral_pathsVec<String>["**/.git/**"]Path globs the session never records (T662), such as Git’s COMMIT_EDITMSG, so they never reopen at a stale cursor.
editorconfigbooltrueApply .editorconfig rules (indent style/size, trim/final-newline on save) for opened files, overriding the global settings per file. On by default.
modeline_linesusize5How many lines at the start and at the end of a file to search for Vim modelines (vim: set ts=4 sw=4 et:); an Emacs -*- … -*- line and Local Variables: block are read too. A modeline overrides the file’s .editorconfig and the settings. 0 turns modelines off.
auto_pairbooltrueAuto-insert the matching closer when an opening bracket/quote is typed (and delete both with Backspace inside an empty pair). On by default.
spellcheckboolfalseUnderline misspelled words in comments and strings.
restore_sessionbooltrueReopen the previous session (open files, focused tab, cursor positions) when Vix is launched in a workspace with no file given on the command line. The session is saved per workspace root in session.toml.
show_welcome_dialogbooltrueShow the welcome dialog on launch. Vix sets it to false and saves the settings as soon as the dialog has been shown once, so it appears on the first run only; set it back to true to see it again.
hot_exitbooltrueHot exit (T629): back up each unsaved buffer to <config>/backup/ while idle and on quit, and offer the backup (with a diff) when the file is next opened. A clean save deletes the backup.
lsp_enabledbooltrueMaster switch for Language Server Protocol features (diagnostics, hover, go-to-definition, completion). When off, no servers are launched.
modal_enginebooltrueUse vix-modal‘s real mode engine (Normal/Insert/Visual/Visual Line, composable operators, counts, registers, text objects, dot-repeat) for the Vi and Spacemacs keymaps’ Normal-mode vocabulary, instead of the original flat binding table. On by default since T115 shipped the full v1 slice (improvement plan T112–T115); a few real-Vim nuances are still deliberately unimplemented (see crates/vix-modal/spec/index.md’s own § Rollout and its T112–T115 status notes) — turn this off to fall back to the original table if one of them matters to you.
inline_blameboolfalseShow the git blame for the cursor’s line inline (dimmed, end of line). Off by default; toggle via Git → Toggle Inline Blame.
code_lensbooltrueDraw code lenses – a language server’s “Run | Debug | 3 references” and local “Run test” – as dimmed rows above their lines.
document_colorsbooltrueDraw a ■ swatch for each color a language server reports (textDocument/documentColor, T621).
lsp_auto_completebooltrueRequest LSP completion automatically while typing an identifier or a server trigger character (debounced), instead of only on Ctrl+Space. On by default.
format_on_typeboolfalseAsk the language server to format as you type (T624): after a character the server lists in documentOnTypeFormattingProvider (such as ;, } or Enter), send textDocument/onTypeFormatting and apply the returned edits. Off by default.
bell_on_command_doneboolfalseRing the terminal bell (\x07) when a background command started via run_command_in (Project → Compile/Run/Test, “Run shell command”, …) finishes — audible (or, on terminals configured for a visual bell, visible) to someone not looking at the screen when it happens, sighted or not. Off by default: opt-in, so it never surprises someone who didn’t ask for it.
explorer_deleteString"trash"How the file explorer’s Delete acts: "trash" (default — move to the OS trash/Recycle Bin, undoable from there) or "hard" (remove outright, fs::remove_file/remove_dir_all, no undo). Any other value falls back to "trash", the safer default, rather than silently hard-deleting on a typo.
review_viewString"inline"How a branch review (T665) opens: "inline" (default, one unified diff buffer) or "side_by_side" (old text left, new text right). Any other value means "inline". Git → Review Two-Pane View (or v in the review) switches the open review without changing this.
remote_agentString"installed"Whether a remote (SSH or container) workspace uses the Vix remote agent (T717), which answers file operations over one connection instead of one shell command each: "installed" (default — use a vix of exactly this version already on the remote machine, on its PATH or in ~/.cache/vix/agent/<version>/, and never upload one), "upload" (also copy this vix there when it has none and the remote operating system and machine match; the copy’s SHA-256 is checked on the remote side before it is made executable) or "off" (shell commands only). Any other value behaves as "installed".
git_gutter_baseString"head"What the editor’s change gutter compares against (T664): "head" (default), "index" (staged hunks stop being marked), "disk" (marks exactly the unsaved edits) or "branch:<name>". Anything else is treated as "head". Git → Change Gutter Base… sets it.
smart_commitString"ask"What Git → Commit does when nothing is staged but the tree has changes (T577): "ask" (default — confirm, then git add -A), "always" (stage everything without asking) or "never" (refuse). Any other value behaves as "ask".
oc_engineString"auto"Which container engine the OC menu drives (T701): "auto" (default – the first of docker, podman, nerdctl on PATH) or one of those names. A named engine that is not installed falls back to the auto order; any other value behaves as "auto".
oc_modeString"full"What the OC menu may do (T701): "full" (default) or "read-only", which allows only listing, inspecting and viewing logs and refuses start/stop/remove/run/build/push/prune and every other change. Any other value behaves as "read-only", the safer reading.
clipboard_providerString"auto"How copy/paste reach the clipboard (T625): "auto" (default — OSC 52 over SSH, i.e. when SSH_TTY/SSH_CONNECTION is set, or when the system clipboard errors; the system clipboard otherwise), "system" (the system clipboard only) or "osc52" (always write the OSC 52 terminal escape, wrapped for tmux under TMUX). Under OSC 52, paste reads Vix’s internal register. Any other value behaves as "auto".
inline_diagnosticsString"cursor-line"Which lines show their LSP diagnostic as dimmed end-of-line text (T614): "off", "cursor-line" (default — the cursor’s line only) or "all". Any other value behaves as "cursor-line". The status line shows the cursor’s diagnostic whatever this is set to.
inline_completionString"off"Where inline ghost-text suggestions come from (T618): "off" (default), "lsp" (textDocument/inlineCompletion from a language server) or "ai" (a fill-in-the-middle prompt to the configured AI provider, which sends the text around the cursor to it). Tab accepts, Ctrl+Right takes one word, Esc dismisses. Any other value behaves as "off".
bottom_dock_heightu169Height (rows) of the bottom dock; drag its top edge to resize.
scrollbackusize1000Maximum lines retained in the bottom dock (scrollback); oldest dropped past this.
terminal_scrollbackusize2000Lines of scrollback each integrated terminal keeps (T631; default 2000, at most 50000 whatever is set; 0 turns it off). Read when a terminal opens. A cell is about 36 bytes, so 2000 lines of 120 columns is roughly 9 MB per terminal.
indent_styleString"spaces"Indentation inserted by Tab: "spaces" (default) or "tabs".
tab_widthusize4Number of spaces per indent when indent_style is "spaces".
wrap_columnusize80Column that Edit → Wrap hard-wraps (fills) text at.
themeString"dark"Color theme: "dark" (default), "light", the name of a custom theme, or "auto" to follow the terminal’s light/dark background (T579).
theme_lightString"light"The theme theme = "auto" picks on a light terminal (default "light").
theme_darkString"dark"The theme theme = "auto" picks on a dark terminal, or when the background can’t be detected (default "dark").
localeString"en"UI language as a locale code (e.g. "en", "es", "fr", "de", "cy"). Used as the default; a --locale CLI flag overrides it for one run.
bidiString"auto"Right-to-left text reordering (UAX #9) of the drawn screen: "auto" (default; on when the UI language is right-to-left, e.g. Arabic), "on", or "off" for terminals that already reorder bidirectional text (T564).
mirror_layoutString"auto"Mirror the layout for right-to-left languages (docks and the editor’s scroll bar swap sides): "auto" (default; on when the UI language is right-to-left), "on" or "off" (T564).
keymapString"apple"Keyboard navigation style id: "apple" (default), "vscode", "emacs", or "vi".
explorer_widthu1624Width (columns) of the left dock (file explorer); drag its right edge to resize.
messages_widthu1626Width (columns) of the right dock (message drawer); drag its left edge to resize.
outline_widthu1628Width (columns) of the code-outline sidebar.
debug_widthu1636Width (columns) of the debugger panel (call stack / variables / watch).
recent_filesVec<String>[]Recently opened files, most-recent first (absolute paths). Capped to recent_files_max; surfaced by File → Open Recent….
recent_files_maxusize15How many entries to keep in recent_files.
command_recentsVec<String>[]Action ids of commands recently run from the command palette, most-recent first; surfaced at the top of the > command list.
dictionary_pathString""Extra directory to search for Hunspell dictionaries, on top of the autodetected standard locations. Empty = autodetect only. Both the <dir>/<name>.{aff,dic} and <dir>/<name>/index.{aff,dic} layouts work.
lsp_serversVec<LspServer>[]Configured language servers, matched to files by extension. Each entry is a language id (sent to the server), the file extensions it handles, and the command (program + args) to launch. Empty by default: in a trusted workspace Vix starts well-known servers it finds on PATH (rust-analyzer, gopls, pyright, clangd, …) anyway, and an entry for an extension replaces the built-in for it, e.g. { language_id = "rust", extensions = ["rs"], command = ["rust-analyzer"] }.
contacts_dirString""Directory of vCard (.vcf) files for the contact browser (Tools → Contacts…). Empty = use the workspace root.
org_capture_templatesVec<CaptureTemplate>[{"clock_in":false,"description":"Anything","empty_lines":0,"entry_type":"entry","immediate_finish":true,"key":"a","prepend":false,"target":"cursor","template":"* TODO %^{Task}"},{"clock_in":false,"description":"Task","empty_lines":0,"entry_type":"entry","immediate_finish":false,"key":"t","prepend":false,"target":"cursor","template":"* TODO "},{"clock_in":false,"description":"Babel","empty_lines":0,"entry_type":"plain","immediate_finish":false,"key":"b","prepend":false,"target":"cursor","template":"#+begin_src %^{Language}\n%?\n#+end_src"},{"clock_in":false,"description":"Note","empty_lines":0,"entry_type":"entry","immediate_finish":true,"key":"n","prepend":false,"target":"cursor","template":"* %^{Note}\n %U"},{"clock_in":false,"description":"Contact","empty_lines":0,"entry_type":"entry","immediate_finish":true,"key":"c","prepend":false,"target":"cursor","template":"* %^{Name}\n :PROPERTIES:\n :EMAIL: %^{Email}\n :PHONE: %^{Phone}\n :ADDRESS: %^{Address}\n :BIRTHDAY: %^{Birthday}\n :NICKNAME: %^{Nickname}\n :NOTE: %^{Note}\n :END:"}]Org-capture templates for the Org → Capture submenu: named, placeholder-driven templates filed at a cursor/id/file/headline/ datetree target. Seeded with five by default (Anything, Task, Babel, Note, Contact; see default_capture_templates); see the vix-org-capture crate and crates/vix-org-capture/spec/index.md.
org_priority_highestchar"0"Highest-priority character for a headline’s [#X] priority cookie (Org → Priority). “Highest” sorts first — Vix’s default is numeric ('0' highest .. '9' lowest), unlike Emacs’s default 'A'..'C'.
org_priority_lowestchar"9"Lowest-priority character; see org_priority_highest.
org_priority_defaultchar"0"Priority given to a headline that had no cookie yet, by Org → Priority → Increase/Decrease.
org_agenda_filesVec<String>[]The Org agenda’s explicit file list (workspace-relative paths), managed by Org → Agenda → File List. Empty (the default) means every .org file in the project — the pre-list behavior.
time_zoneString"UTC"Active time zone as an IANA canonical name (e.g. "UTC", "America/New_York"). Chosen via Tools → Time Zone…; used app-wide (e.g. the clock panel).
calendar_first_weekdayString"monday"The day the calendar box’s weeks start on (T797): "monday" (default) through "sunday", or a three-letter abbreviation, in any case. It is independent of the UI language. Missing from older config files, it keeps the Monday start; any other value behaves as "monday".
aiString"on"The AI optional switch (T730): "on" (default) or "off". Off hides the AI menu and every AI palette entry and refuses every AI request at run time — the AI menu’s actions, the chat panel, the generated commit message and the DB workbench assistant — so no prompt ever leaves Vix. It needs no rebuild (the ai Cargo feature is the build-time switch). Any value other than "on" counts as "off", failing closed. See [Settings::ai_enabled].
ai_commandString"claude -p {prompt}"Command template the AI menu runs over editor text. The placeholder {prompt} is replaced with the action’s instruction; if the template also contains {file} it is replaced with the path of a temp file holding the input text, otherwise that file is redirected to the command’s stdin. This lets you point the AI menu at any CLI assistant — claude (default), codex, mistral, ollama run …, etc. See [Settings::ai_command_line].
ai_providerString"cli"Which backend the AI menu, chat panel, and DB workbench assistant use. "cli" (default) shells out to ai_command, unchanged since the AI features first shipped — no API key for Vix to hold. "anthropic", "openai", or "ollama" instead call that provider’s HTTP API directly via the vix-ai-core crate, using ai_endpoint/ai_model and a keyring-backed API key (see ai_api_key_command and crates/vix-ai-core/spec/index.md). An unrecognized value falls back to "cli".
ai_endpointString""HTTP provider endpoint override (T124); empty uses the provider’s own default (e.g. Anthropic’s public Messages API, or http://localhost:11434/api/generate for Ollama; an override must be the full URL). Ignored when ai_provider is "cli".
ai_modelString""HTTP provider model id override (T124); empty uses the provider’s own default. Ignored when ai_provider is "cli".
ai_api_key_commandString""Command whose stdout is the HTTP provider’s API key (T124), tried before the OS keyring — the same shape as vix-db’s password_command (e.g. "pass show anthropic-api-key"). Ignored for ai_provider = "cli"; optional for "ollama" (a local server needs no key by default).
ai_agentsVec<String>[]Agent Client Protocol coding agents (T635): each entry is a command line (split on whitespace, run without a shell), e.g. "gemini --experimental-acp". AI → Start Agent starts it (or asks which, when several are listed), and only in a trusted workspace. Empty by default. See crates/vix-acp/spec/index.md.
debug_adaptersVec<DebugAdapter>[]Configured debug adapters (DAP), matched to files by extension, each with optional launch and attach argument tables. Empty by default — add the adapters you have installed.
test_commandString"cargo test"Command run by Tools → Run Tests, whose output is parsed into a pass/fail tree (e.g. cargo test, pytest -v, npm test).
project_snippetsString"config/snippets/snippets.json"Project snippet file, relative to the project root. Loaded alongside the global and media-type snippet files. See the vix-snippets crate spec.
coverage_pathString""Default path to a coverage report (LCOV or Cobertura XML), pre-filled in the Tools → Load Coverage File… prompt. Empty means no default; Vix never generates a coverage report itself. See the vix-coverage crate spec.
test_widthu1640Width (columns) of the test-results panel.
db_connectionsVec<Connection>[]Saved database connections for the DB menu (the vix-db crate spec). Passwords are never stored here; they are prompted for per session.
db_environmentsstd::collections::BTreeMap<String, Environment>{}The environment of each saved database connection, by connection name (T781): a [db_environments] table such as prod = "production". Values are local, development, testing, staging or production; a connection with no entry is local. Production connections confirm every write, even inside a transaction. Managed by the DB workbench’s connection form.
db_mcp_sharedstd::collections::BTreeMap<String, bool>{}Which saved database connections vix --mcp shares with MCP clients (T783), by connection name: a [db_mcp_shared] table such as app = true. A connection with no entry, or false, is not shared and does not exist for MCP clients. Shared connections are opened read-only, with credentials from password_command or the OS keyring only. Managed by the DB workbench’s connection form.
im.nickString""Your nick. Empty (the default) uses the operating system’s user name.
im.notifyString"mentions"When a new message raises a notification: "all", "mentions" (default) or "off". Any other value behaves as "mentions".
im.historyString"session"Where messages are kept: "session" (default; memory only) or "disk" (JSONL per conversation under the platform data directory).
im.history_daysu3230With history = "disk", how many days of messages to keep.
im.blockedVec<String>[]Nicks whose messages and mentions are hidden.
im.accountsVec<ImAccount>[]IRC and Matrix accounts for IM → Connect…, as [[im.accounts]] tables.
im.matrix_helperString""The vix-matrix helper program for Matrix accounts. Empty (the default) looks for vix-matrix beside the vix executable, then on PATH.
jupyter_confirm_evaluateString"untrusted"When running an Org src block in a Jupyter kernel asks first (T734f, spec/jupyter): "untrusted" (the default) asks before a block’s first run in a session unless the workspace is trusted, and always for a file outside the workspace; "always" asks before every block run; "never" never asks. A block’s own :eval query still asks and :eval never still refuses. Any other value behaves as "untrusted". Only read in a build with the jupyter capability.
jupyter_kernelsstd::collections::BTreeMap<String, String>{}Which Jupyter kernelspec runs each language (T734c, spec/jupyter): a [jupyter_kernels] table of language → kernelspec name, such as python = "python3". Run → Jupyter → Run uses it when no kernel for the language is running yet. Languages are matched lowercased, and an ob-jupyter style jupyter-python key means python. Empty (the default) picks the first installed kernelspec for the language. Only read in a build with the jupyter capability.
languagesstd::collections::BTreeMap<String, toml::Table>{}Per-language overrides (T627): a [languages.<id>] table of partial settings for each of Vix’s language ids (rust, python, markdown, …), applied over everything else for a buffer in that language by Settings::for_language. Only the keys in LANGUAGE_KEYS take effect.

111 settings.