nvim/lua/plugins/nvim_neorg.lua
Evie Litherland-Smith ea722bb23d lspconfig update and cspell config file
Start checking for executable before registering lsp server
Add missing dependencies for direnv, indent_blankline and nvim_neorg
Add standard .cspell.json, make now links it to home directory
2023-06-12 18:59:08 +01:00

26 lines
916 B
Lua

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",
})
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" } },
},
},
}