-
Notifications
You must be signed in to change notification settings - Fork 56
Presets
Shawon edited this page Jan 24, 2025
·
8 revisions
Pre-defined configurations to take inspiration from.
local presets = require("markview.presets");
require("markview").setup({
markdown = {
headings = presets.headings.glow
}
});
--- You can again call `setup()` to modify
--- the options without changing the preset.
require("markview").setup({
markdown = {
headings = { shift_width = 1 }
}
});
local presets = require("markview.presets").headings;
require("markview").setup({
markdown = {
headings = presets.glow
}
});
- glow

- glow_center

- slanted

- arrowed

- simple

- marker

local presets = require("markview.horizontal_rules").horizontal_rules;
require("markview").setup({
markdown = {
horizontal_rules = presets.arrowed
}
});
- thin

- thick

- double

- dashed

- dotted

- solid

- arrowed

local presets = require("markview.presets").tables;
require("markview").setup({
markdown = {
tables = presets.none
}
});
- none

- single

- double

- rounded

- solid

Also available in vimdoc, :h markview.nvim-presets
.