neorg 8.2.0 adds the field username for metagen

- https://github.com/nvim-neorg/neorg/pull/1331
This commit is contained in:
Fabrice Mouhartem 2024-03-27 00:43:34 +01:00
parent 646415fd07
commit 340e12e3ef
2 changed files with 3 additions and 8 deletions

View File

@ -256,7 +256,7 @@ require('lazy').setup({
dependencies = { "luarocks.nvim" }, dependencies = { "luarocks.nvim" },
lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
version = "*", -- Pin Neorg to the latest stable release version = "*", -- Pin Neorg to the latest stable release
-- config = true, config = true,
}, },
-- vim-speeddating -- vim-speeddating
'tpope/vim-speeddating', 'tpope/vim-speeddating',

View File

@ -64,14 +64,9 @@ neorg.setup {
}, },
["core.esupports.metagen"] = { ["core.esupports.metagen"] = {
config = { config = {
author = "Chouhartem",
type = "empty", type = "empty",
}, },
}, },
} }
} }
-- Use custom name for the author field in metadata instead of the system
-- username
neorg.utils.get_username = function()
return "Chouhartem"
end