pub struct SetExtmarkOptsBuilder(_);

Implementations

Enable concealing symilar to :syn-conceal. If a character is supplied it is used as :syn-cchar.

hl_group is used to highlight the character if provided, otherwise it defaults to hl-Conceal.

Name of the highlight group used to highlight the line when the cursor is on the same line as the mark and cursorline is enabled.

Ending line of the mark. 0-indexed and exclusive.

Indicates the direction the extmark’s end position (if it exists) will be shifted in when new text is inserted (true for right, false for left). Defaults to left.

Ending line of the mark. 0-indexed and inclusive.

For use with api::set_decoration_provider callbacks. The mark will only be used for the current redraw cycle, and not be permanently stored in the buffer.

Whether to continue the highlight for the rest of the screen line for multiline highlights covering the EOL of a line.

Name of the highlight group used to highlight this mark.

Controls how highlights are combined with the highlights of the text.

Id of the extmark to edit.

Name of the highlight group used to highlight the whole line.

Name of the highlight group used to highlight the number column.

A priority value for the highlight group. For example, treesitter highlights use a value of 100.

Indicates the direction the extmark will be shifted in when new text is inserted (true for right, false for left). Defaults to right.

Name of the highlight group used to highlight the sign column text.

Text to display in the sign column. Should take up 1-2 display cells.

Whether the extmark should not be placed if the line or column value is past the end of the buffer or end of the line, respectively. Defaults to true.

Whether the mark should be drawn by an external UI. When true the UI will receive win_extmark events.

Virtual lines to add next to the mark.

Whether to place virtual lines above the buffer line containing the mark.

Whether to place extmarks in the leftmost column of the ewindow, bypassing sign and number columns.

Virtual text to link to this mark. Every (text, highlights) tuple represents a text chunk with a specified highlight. The highlights specified in highlights will be combined together, with the highest priority highlight beign applied last. Each highlight group can either be a string or an integer, the latter obtained using api::get_hl_id_by_name.

Whether to hide the virtual text when the background text is selected or hidden due to horizontal scroll.

Position of the virtual text.

Position the virtual text at a fixed window column (starting from the first text column).

Builds the options.

Methods from Deref<Target = SetExtmarkOpts>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.