Enhancing the display of YAML front matter in Markdown files
Instead see this in markdown file
---
title: algebra
author: ray
date: 2024-05-05
id: 1714834956
tags:
- algebra
- math
category: note
type: post
---
You see this:
title algebra
author ray
date 2024-05-05
id 1714834956
tags { 'algebra', 'math' }
category note
type post
- Neovim 0.9+
- nvim-treesitter for markdown and yaml
- A patched font with Nerd Font glyphs
require('yamlmatter').setup({
icon_mappings = {
title = '',
idea = '',
default = '',
},
highlight_groups = {
icon = 'MyIconHighlight',
key = 'MyKeyHighlight',
value = 'MyValueHighlight',
},
key_value_padding = 4, -- Less space
conceallevel = 1, -- on what level start conceal the yaml text
})
By default if plugin setup, you can use :YamlMatter
to toggle the display of YAML front matter and use
:YamlMatterDisable
to disable it.
This plugin is licensed under the MIT License.