Skip to content

Presets

Shawon edited this page Jul 28, 2024 · 5 revisions

Presets

Presets are configuration tables that you can use to quickly customise various parts of the plugin.

They can be used by requiring the presets file and using the values in the setup() function.

Example usage,

local presets = require("markview.presets");

require("markview").setup({
    headings = presets.headings.glow
});

Table of contents

Heading presets

The plugin provides quite a few presets for headings such as,

glow

glow_preview

Adds Glow-like headings to the previewer.

glow_labels

glow_labels_preview

Unlike glow this one will also add decorations to all heading levels.

decorated_labels

decorated_labels_preview

Adds decorations to the headings.

simple

simple_preview

Adds simple background color to the headings.

simple_no_marker

simple_no_marker_preview

Like simple but removes the leading # of headings.

Table presets

There are a few presets for various borders of tables such as,

border_none

border_none_preview

Replaces table borders with whitespaces.

border_headers

border_headers_preview

Only adds border to the table_headers

border_single

border_single_preview

Like the border="single" of floating windows. Doesn't use rounded corners.

border_single_corners

border_single_corners_preview

Makes the border corners thicker to stand out more.

border_double

border_double_preview

Like the border="double" of floating windows.

Clone this wiki locally