summaryrefslogtreecommitdiff
path: root/public/nvim/.nvim/lua/plugins/extra/neorg.lua
blob: 991ec40381076308a18c599013b3be34cea750a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
return {
	{
		"nvim-neorg/neorg",
		build = ":Neorg sync-parsers",
		dependencies = { "nvim-lua/plenary.nvim" },
		config = function()
			require("neorg").setup({
				load = {
					["core.defaults"] = {}, -- Loads default behaviour
					["core.concealer"] = {}, -- Adds pretty icons to your documents
					["core.completion"] = { config = { engine = "nvim-cmp" } },
					["core.dirman"] = { -- Manages Neorg workspaces
						config = {
							workspaces = {
                notes = "~/notes",
                www = "~/www",
              },
							default_workspace = "notes",
						},
					},
				},
			})
		end,
	},

	{
		"hrsh7th/nvim-cmp",
		dependencies = { "nvim-neorg/neorg" },
		opts = function(_, opts)
			if type(opts) == "table" then
				table.insert(opts.sources, 1, { name = "neorg" })
				opts.formatting.format.menu["neorg"] = ""
			end
		end,
	},
}