From 111fc182f20ae64dad8f747968d9940aaa6068fb Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sat, 20 Jan 2024 15:15:19 +0000 Subject: [PATCH] feat: better neorg configuration --- init.lua | 16 +--------------- lua/core/init.lua | 1 + lua/core/neorg.lua | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 lua/core/neorg.lua diff --git a/init.lua b/init.lua index 35fa22b..b1a5522 100644 --- a/init.lua +++ b/init.lua @@ -61,22 +61,8 @@ require("lazy").setup({ { "nvim-neorg/neorg", build = ":Neorg sync-parsers", + branch = "main", dependencies = { "nvim-lua/plenary.nvim" }, - config = function() - require("neorg").setup { - load = { - ["core.defaults"] = {}, - ["core.concealer"] = {}, - ["core.dirman"] = { - config = { - workspaces = { - notes = "~/NAS/Neorg/Notes", - }, - }, - }, - }, - } - end, }, }) diff --git a/lua/core/init.lua b/lua/core/init.lua index afd9386..1ecb2bf 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -2,3 +2,4 @@ require 'core.options' require 'core.dashboard' require 'core.keybinds' require 'core.lualine' +require 'core.neorg' diff --git a/lua/core/neorg.lua b/lua/core/neorg.lua new file mode 100644 index 0000000..ac27128 --- /dev/null +++ b/lua/core/neorg.lua @@ -0,0 +1,17 @@ +require("neorg").setup { + load = { + ["core.defaults"] = {}, + ["core.dirman"] = { + config = { + workspaces = { + notes = "~/NAS/Neorg/Notes", + }, + }, + }, + ["core.concealer"] = { + config = { + icons_preset = "varied" + }, + }, + }, +}