ray-x / yamlmatter.nvim

Enhancing the display of YAML frontmatter in Markdown files
25 stars 0 forks source link

frontmatter values with spaces? #2

Open Oneechan69 opened 1 week ago

Oneechan69 commented 1 week ago

I have lots of daily notes in Obsidian with the frontmatter values "Date Created" and "Date Modified", but it seems there isn't a way to specify icons for them in highlight_groups.

ray-x commented 1 week ago

You should be able to use the following setup

require('yamlmatter').setup({
  icon_mappings = {
   ['Date Created'] = '',
    idea = '',
    default = '󰦨',
  },
})