Skip to content

Presets

Moinul Hossain edited this page Oct 5, 2024 · 5 revisions

Presets

Presets are configuration recipes that you can use without the hassle of writing large configuration tables.

markview.nvim comes with the following presets,

  • Checkboxes, presets.checkboxes
    • nerd
    • legacy
  • Headings, presets.headings
    • glow
    • glow_center
    • slanted
    • arrow
    • simple
    • marker
  • Horizontal rules, presets.horizontal_rules
    • thin
    • thick
    • double
    • dashed
    • dotted
    • solid
    • arrowed

Using presets is very simple, just require() the presets file and use it like so,

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

require("markview").setup({
    checkboxes = presets.checkboxes.nerd
});

Presets: Checkboxes

checkbox presets

Currently available presets,

  • nerd
  • legacy

Usage,

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

require("markview").setup({
    checkboxes = presets.nerd
});

Presets: Headings

heading presets

Currently available presets,

  • glow
  • glow_center
  • slanted
  • arrowed
  • simple
  • marker

Usage,

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

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

Presets: Horizontal rules

hr presets

Currently available presets,

  • thin
  • thick
  • double
  • dashed
  • dotted
  • solid
  • arrowed

Usage,

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

require("markview").setup({
    headings = presets.thin
});
Clone this wiki locally