diff --git a/lua/lazy-configure.lua b/lua/lazy-configure.lua index 5122ace..148f864 100644 --- a/lua/lazy-configure.lua +++ b/lua/lazy-configure.lua @@ -256,7 +256,37 @@ 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 = function() + require("neorg").setup { + load = { + ["core.defaults"] = {}, + ["core.concealer"] = { + config = { + icon_preset = "diamond", + } + }, + ["core.dirman"] = { + config = { + workspaces = { + notes = "~/Sync/neorg", + }, + default_workspace = "notes", + } + }, + ["core.export"] = { + config = { + export_dir = "/", + }, + }, + ["core.esupports.metagen"] = { + config = { + author = "Chouhartem", + type = "empty", + }, + }, + } + } + end, }, -- vim-speeddating 'tpope/vim-speeddating', diff --git a/lua/neorg-configure.lua b/lua/neorg-configure.lua index a61f0dd..0973ea4 100644 --- a/lua/neorg-configure.lua +++ b/lua/neorg-configure.lua @@ -38,35 +38,3 @@ vim.api.nvim_set_keymap("n", "nee", ":Neorg export to-file /tmp/neorg-ex { noremap = true, silent = true, desc = "[N]eorg [E]xport Predefined" }) vim.api.nvim_set_keymap("n", "nef", ":Neorg export to-file ", { noremap = true, silent = true, desc = "[N]eorg [E]xport [F]ile" }) - -local neorg = require('neorg') - -neorg.setup { - load = { - ["core.defaults"] = {}, - ["core.concealer"] = { - config = { - icon_preset = "diamond", - } - }, - ["core.dirman"] = { - config = { - workspaces = { - notes = "~/Sync/neorg", - }, - default_workspace = "notes", - } - }, - ["core.export"] = { - config = { - export_dir = "/", - }, - }, - ["core.esupports.metagen"] = { - config = { - author = "Chouhartem", - type = "empty", - }, - }, - } -}