return { "nvim-neorg/neorg", cond = function() return vim.fn.executable "nix" == 1 and not vim.g.vscode end, build = ":Neorg sync-parsers", ft = "norg", cmd = "Neorg", lazy = true, dependencies = { "plenary.nvim", "nvim-treesitter", "nvim-cmp" }, init = function() vim.api.nvim_create_autocmd({ "BufWritePre" }, { pattern = { "*.norg" }, command = "Neorg update-metadata", }) vim.api.nvim_create_autocmd({ "BufReadPre", "BufNewFile" }, { pattern = { "*.norg" }, command = "setlocal spell spelllang=en_gb", }) vim.keymap.set("n", "wp", "Neorg workspace personal ") vim.keymap.set("n", "ww", "Neorg workspace work ") vim.keymap.set("n", "wr", "Neorg return ") vim.keymap.set("n", "jo", "Neorg journal today ") vim.keymap.set("n", "jc", "Neorg journal custom ") vim.keymap.set("n", "jn", "Neorg journal tomorrow ") vim.keymap.set("n", "jp", "Neorg journal yesterday ") vim.keymap.set("n", "jt", "Neorg journal template ") end, opts = { load = { ["core.defaults"] = {}, ["core.concealer"] = { config = { icon_preset = "diamond" } }, ["core.dirman"] = { config = { workspaces = { personal = "~/notes/personal", work = "~/notes/work" } } }, ["core.completion"] = { config = { engine = "nvim-cmp" } }, ["core.journal"] = {}, ["core.presenter"] = { config = { zen_mode = "zen-mode" } }, ["core.ui.calendar"] = {}, }, }, }