Metagen - nvim-neorg/neorg Wiki

Generate Neorg metadata

Summary

A Neorg module for generating document metadata automatically.

Overview

Usage

How to Apply

Configuration

One of "none" or "auto"

"none"

How to generate a tabulation inside the @document.meta tag

function()
        if not vim.opt_local.expandtab then
            return "	"
        else
            return string.rep(" ", vim.opt_local.tabstop:get())
        end
    end,

Custom delimiter between tag and value

": "

Custom template to use for generating content inside @document.meta tag

{
{
"title",
function()
return vim.fn.expand("%:p:t:r")
end,
},
{ "description", "" },
{ "authors", require("neorg.external.helpers").get_username },
{ "categories", "" },
{
"created",
function()
return os.date("%Y-%m-%d")
end,
},
{ "version", require("neorg.config").version },
},

Developer Usage

Public API

This segment will detail all of the functions core.norg.esupports.metagen exposes. All of these functions reside in the public table.

Examples

None Provided

Extra Info

Version

This module supports at least version 0.0.9. The current Neorg version is 0.0.9.

Imports

This module does not import any other files.

Requires

Required by

This module isn't required by any other module.