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 7415689345
commit 74f17dbb59
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7
2 changed files with 3 additions and 8 deletions

View File

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

View File

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