summaryrefslogtreecommitdiffstats
path: root/after/plugin/neorg.lua
blob: ec0b24a4fa863d8f8f49df3044a4f78d75cafe8d (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
local status_ok, neorg = pcall(require, "neorg")
if not status_ok then
  return
end

local wsphome = (os.getenv("XDG_DOCUMENTS_DIR") or
  (os.getenv("HOME").."/Documents")).."/notes/"
neorg.setup {
  load = {
    ["core.defaults"] = {},
    ["core.esupports.metagen"] = {
      config = {
        type = "auto",
        update_date = true,
      }
    },
    ["core.dirman"] = {
      config = {
        workspaces = {
          home = wsphome.."home",
          robotics = wsphome.."robotics",
          school = wsphome.."school"
        },
        index = "index.norg",
        default_workspace = "home"
      }
    },
    ["core.summary"] = {},
    ["core.concealer"] = {
      config = {
        dim_code_blocks = {
          padding = { right = 2, },
          content_only = false,
          width = "content",
        },
        folds = false,
        icon_preset = "basic",
      }
    },
    ["core.export"] = {},
    ["core.completion"] = {
      config = {
        engine = "nvim-cmp",
      }
    },
    ["core.qol.toc"] = {
      config = {
        close_after_use = true
      }
    },
    ["core.presenter"] = {
      config = {
        zen_mode = "zen-mode",
      }
    },
    ["core.integrations.telescope"] = {},
  }
}