Skip to main content

OptionGroup

Trait OptionGroup 

Source
pub trait OptionGroup: 'static {
    const NAME: &'static str;
    const DOC: &'static str;

    // Provided method
    fn type_id() -> TypeId
       where Self: Sized { ... }
}
Expand description

Compile-time declaration of one option group. Each group is a unit struct (typically generated by the crate::groups! macro) implementing this trait.

Required Associated Constants§

Source

const NAME: &'static str

Public display name. Used as the boundary string for :customize <name> and as the prefix-match key for option group queries. Cannot end in -mode.

Source

const DOC: &'static str

Doc string. Shown in :describe-group <name> and the :customize group picker.

Provided Methods§

Source

fn type_id() -> TypeId
where Self: Sized,

TypeId for type-driven group lookups.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl OptionGroup for Ai

Source§

const NAME: &'static str = "ai"

Source§

const DOC: &'static str = "AI-agent (ACP client) options: per-process log capture + level."

Source§

impl OptionGroup for Appearance

Source§

const NAME: &'static str = "appearance"

Source§

const DOC: &'static str = "Appearance / theming options (colors, sprite icons, font rendering)."

Source§

impl OptionGroup for Completion

Source§

const NAME: &'static str = "completion"

Source§

const DOC: &'static str = "Completion options across providers (LSP, snippets, buffer-words, paths)."

Source§

impl OptionGroup for Diagnostics

Source§

const NAME: &'static str = "diagnostics"

Source§

const DOC: &'static str = "Diagnostics presentation: inline end-of-line summary scope + min-severity."

Source§

impl OptionGroup for Display

Source§

const NAME: &'static str = "display"

Source§

const DOC: &'static str = "Visual-presentation options across modes \ (line numbers, wrap, whitespace visualization, ...)."

Source§

impl OptionGroup for Editing

Source§

const NAME: &'static str = "editing"

Source§

const DOC: &'static str = "Editing-related options (search, indent, auto-pair, ...)."

Source§

impl OptionGroup for Editor

Source§

const NAME: &'static str = "editor"

Source§

const DOC: &'static str = "Bare-named editor options (tabstop, number, wrap, foldmethod, ...). \ Reserved namespace -- plugins must use their own prefix."

Source§

impl OptionGroup for Filetree

Source§

const NAME: &'static str = "filetree"

Source§

const DOC: &'static str = "File tree navigation buffer."

Source§

impl OptionGroup for Help

Source§

const NAME: &'static str = "help"

Source§

const DOC: &'static str = "Help / documentation buffers."

Source§

impl OptionGroup for Lsp

Source§

const NAME: &'static str = "lsp"

Source§

const DOC: &'static str = "Every option owned by an LSP mode. \ `:customize lsp` shows the union sectioned by owning mode."

Source§

impl OptionGroup for Magit

Source§

const NAME: &'static str = "magit"

Source§

const DOC: &'static str = "Magit git porcelain buffers."

Source§

impl OptionGroup for Messages

Source§

const NAME: &'static str = "messages"

Source§

const DOC: &'static str = "Echo-area + `*messages*` buffer + tracing bridge."

Source§

impl OptionGroup for Modeline

Source§

const NAME: &'static str = "modeline"

Source§

const DOC: &'static str = "Modeline (bottom per-pane status row): per-zone element layout + separator."

Source§

impl OptionGroup for Mouse

Source§

const NAME: &'static str = "mouse"

Source§

const DOC: &'static str = "Mouse reporting: whether the editor captures mouse events from the terminal."

Source§

impl OptionGroup for Notifications

Source§

const NAME: &'static str = "notifications"

Source§

const DOC: &'static str = "Corner-anchored notifications."

Source§

impl OptionGroup for Oil

Source§

const NAME: &'static str = "oil"

Source§

const DOC: &'static str = "Oil-style editable directory buffer."

Source§

impl OptionGroup for Pane

Source§

const NAME: &'static str = "pane"

Source§

const DOC: &'static str = "Per-pane behaviour: the bound on each pane's buffer history trail."

Source§

impl OptionGroup for Picker

Source§

const NAME: &'static str = "picker"

Source§

const DOC: &'static str = "File finder, command palette, symbol search."

Source§

impl OptionGroup for Plugin

Source§

const NAME: &'static str = "plugin"

Source§

const DOC: &'static str = "Plugin observability: the global default boundary-trace verbosity."

Source§

impl OptionGroup for Project

Source§

const NAME: &'static str = "project"

Source§

const DOC: &'static str = "Project resolution: the marker set a buffer's project root is discovered by."

Source§

const NAME: &'static str = "search"

Source§

const DOC: &'static str = "Project-search options: `:search` clustering, context lines, scan limits."

Source§

impl OptionGroup for Snippet

Source§

const NAME: &'static str = "snippet"

Source§

const DOC: &'static str = "Snippet engine: activation policy + supported-language allowlist."

Source§

impl OptionGroup for Tabline

Source§

const NAME: &'static str = "tabline"

Source§

const DOC: &'static str = "Tabline (vim-style tab strip)."

Source§

impl OptionGroup for Terminal

Source§

const NAME: &'static str = "terminal"

Source§

const DOC: &'static str = "PTY-backed terminal buffer."

Source§

impl OptionGroup for Window

Source§

const NAME: &'static str = "window"

Source§

const DOC: &'static str = "GPUI window options (borderless chrome, maximize on launch). GPUI peer only."