pub struct Config {
pub tab_size: usize,
pub indent_guides: bool,
pub indent_style: IndentStyle,
pub indent_detect: bool,
pub auto_format: bool,
pub search_show_hidden: bool,
pub search_respect_ignore: bool,
}Fields§
§tab_size: usizeIndent unit width in spaces (>>, auto-indent, tab display).
A document’s detected indent overrides this per buffer when
indent_detect is on.
indent_guides: boolIndent guides (dim │ per level) on/off.
indent_style: IndentStyleWhat auto-indent, >> and the Tab key emit.
indent_detect: boolInfer an opened document’s indent (unit and width) from its content; the config above is the fallback and the new-file default.
auto_format: boolFormat through the language server before writing (helix’s auto-format). A formatter failure never blocks the write.
Search surfaces show unignored dotfiles/dotfolders by default
(0051 R03). hidden:include|exclude in a query overrides.
search_respect_ignore: boolSearch surfaces respect .gitignore/.ignore/.rgignore (0051 R03).
ignored:include|exclude in a query overrides.
Implementations§
Source§impl Config
impl Config
Sourcepub fn knob_value(&self, key: &str) -> Option<String>
pub fn knob_value(&self, key: &str) -> Option<String>
The one typed knob→value projection (0051 R10): print_knobs,
:explain and selectors read real values from this path. A key
absent from KNOBS is None — never a fabricated “?” placeholder.
Sourcepub fn print_knobs(&self)
pub fn print_knobs(&self)
strop config: the knobs with live values (KNOBS is the data
source; this is its first consumer — the settings popup is next).
Sourcepub fn load() -> (Self, Option<String>)
pub fn load() -> (Self, Option<String>)
Load the user config; errors are returned as a message for the statusline — the editor always starts with defaults (0005 §2).