34 lines
1.2 KiB
Lua
34 lines
1.2 KiB
Lua
return {
|
|
"nvim-neorg/neorg",
|
|
cond = function() return vim.fn.executable("nix") == 1 and not vim.g.vscode end,
|
|
build = ":Neorg sync-parsers",
|
|
event = { "FileType norg" },
|
|
cmd = "Neorg",
|
|
lazy = true,
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
init = function()
|
|
vim.api.nvim_create_autocmd({ "BufNewFile", "BufReadPost" }, {
|
|
pattern = { "*.norg" },
|
|
command = "set filetype=norg",
|
|
})
|
|
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" } },
|
|
["core.export"] = {},
|
|
["core.journal"] = {},
|
|
["core.presenter"] = { config = { zen_mode = "zen-mode" } },
|
|
["core.summary"] = { config = { strategy = "metadata" } },
|
|
-- ["core.ui.calendar"] = {},
|
|
-- ["core.integrations.telescope"] = {},
|
|
},
|
|
},
|
|
}
|