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

@ -164,7 +164,7 @@ require('lazy').setup({
},
-- "gc" to comment visual regions/lines
{ 'numToStr/Comment.nvim', opts = {} },
{ 'numToStr/Comment.nvim', opts = {} },
-- Fuzzy Finder (files, lsp, etc)
{
@ -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