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", + }, + }, } })