nvim/lua/plugins/nvim_neorg.lua
Evie Litherland-Smith 5e7fcd7e72 Add neorg telescope integration
Add extra neorg modules: export, presenter, summary, telescope
2023-05-20 13:21:42 +01:00

32 lines
1.1 KiB
Lua

return {
"nvim-neorg/neorg",
build = ":Neorg sync-parsers",
event = { "FileType norg" },
cmd = "Neorg",
lazy = true,
dependencies = { "nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter", "nvim-neorg/neorg-telescope" },
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"] = {},
["core.dirman"] = { config = { workspaces = { notes = "~/notes" } } },
["core.completion"] = { config = { engine = "nvim-cmp" } },
["core.export"] = {},
["core.presenter"] = { config = { zen_mode = "zen-mode" } },
["core.summary"] = { config = { strategy = "metadata" } },
-- ["core.ui.calendar"] = {},
["core.integrations.telescope"] = {},
},
},
}