nvim/lua/plugins/nvim_neorg.lua

26 lines
929 B
Lua
Raw Normal View History

return {
"nvim-neorg/neorg",
2023-06-10 08:29:21 +01:00
cond = function() return vim.fn.executable "nix" == 1 and not vim.g.vscode end,
build = ":Neorg sync-parsers",
2023-06-10 08:29:21 +01:00
ft = "norg",
cmd = "Neorg",
lazy = true,
2023-06-10 08:29:21 +01:00
dependencies = { "nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter" },
init = function()
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
pattern = { "*.norg" },
command = "Neorg update-metadata",
})
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" } },
2023-05-23 16:52:45 +01:00
["core.journal"] = {},
["core.presenter"] = { config = { zen_mode = "zen-mode" } },
},
},
}