From 74f17dbb59534f6f9b63d99b3a1549fa47b48607 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Wed, 27 Mar 2024 00:43:34 +0100 Subject: [PATCH] neorg 8.2.0 adds the field username for metagen - https://github.com/nvim-neorg/neorg/pull/1331 --- lua/lazy-configure.lua | 4 ++-- lua/neorg-configure.lua | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/lua/lazy-configure.lua b/lua/lazy-configure.lua index 3c02bc7..5122ace 100644 --- a/lua/lazy-configure.lua +++ b/lua/lazy-configure.lua @@ -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', diff --git a/lua/neorg-configure.lua b/lua/neorg-configure.lua index 3a01187..a61f0dd 100644 --- a/lua/neorg-configure.lua +++ b/lua/neorg-configure.lua @@ -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