2023-05-20 10:16:24 +01:00
|
|
|
return {
|
|
|
|
"nvim-neorg/neorg",
|
|
|
|
build = ":Neorg sync-parsers",
|
2023-05-20 12:44:21 +01:00
|
|
|
event = { "FileType norg" },
|
|
|
|
cmd = "Neorg",
|
|
|
|
lazy = true,
|
2023-05-20 13:21:42 +01:00
|
|
|
dependencies = { "nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter", "nvim-neorg/neorg-telescope" },
|
2023-05-20 12:44:21 +01:00
|
|
|
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,
|
2023-05-20 10:16:24 +01:00
|
|
|
opts = {
|
|
|
|
load = {
|
2023-05-20 12:44:21 +01:00
|
|
|
["core.defaults"] = {},
|
|
|
|
["core.concealer"] = {},
|
2023-05-22 12:55:01 +01:00
|
|
|
["core.dirman"] = { config = { workspaces = { notes = "~/notes", logbooks = "~/Documents/Logbooks" } } },
|
2023-05-20 12:44:21 +01:00
|
|
|
["core.completion"] = { config = { engine = "nvim-cmp" } },
|
2023-05-20 13:21:42 +01:00
|
|
|
["core.export"] = {},
|
2023-05-23 16:52:45 +01:00
|
|
|
["core.journal"] = {},
|
2023-05-20 13:21:42 +01:00
|
|
|
["core.presenter"] = { config = { zen_mode = "zen-mode" } },
|
|
|
|
["core.summary"] = { config = { strategy = "metadata" } },
|
|
|
|
-- ["core.ui.calendar"] = {},
|
|
|
|
["core.integrations.telescope"] = {},
|
2023-05-20 10:16:24 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|