From 62f5da6951a1d18d62ca316cbae2bd128cb2ffc2 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 30 May 2024 12:30:14 +0200 Subject: [PATCH] feat(nvim): add neorg --- home-manager/neovim/default.nix | 10 ++++++++++ home-manager/neovim/neorg.lua | 11 ++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index 26ed782..adae6ef 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -84,6 +84,10 @@ in # debugging nvim-dap nvim-dap-ui + + # neorg + neorg + neorg-telescope ]; withNodeJs = true; @@ -112,6 +116,11 @@ in nixpkgs-fmt ]; + extraLuaPackages = luaPackages: [ + luaPackages.lua-utils-nvim + luaPackages.pathlib-nvim + ]; + extraConfig = '' lua << EOF vim.o.guifont = "DejaVu Sans Mono:h10" @@ -144,6 +153,7 @@ in ${builtins.readFile ./project-nvim.lua } ${builtins.readFile ./dap.lua } + ${builtins.readFile ./neorg.lua } vim.g.gitblame_date_format = "%r" diff --git a/home-manager/neovim/neorg.lua b/home-manager/neovim/neorg.lua index 2296608..eb9fe84 100644 --- a/home-manager/neovim/neorg.lua +++ b/home-manager/neovim/neorg.lua @@ -2,6 +2,15 @@ local neorg = require("neorg") neorg.setup({ load = { - ["core.defaults"] = {} + ["core.defaults"] = {}, + ["core.concealer"] = {}, + ["core.dirman"] = { + config = { + workspaces = { + notes = "~/notes", + }, + default_workspace = "notes", + }, + }, } })