aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/neorg_conf.lua
blob: 895122e81a182e7714246d92062935ff83725ccb (plain)
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
require('luarocks-nvim').setup({})
require('neorg').setup({
  load = {
    ["core.defaults"] = {},
    ["core.integrations.treesitter"] = {},
    ["core.autocommands"] = {},
    ["core.concealer"] = {},
    ["core.export"] = {},
    ["core.presenter"] = {
      config = {
        zen_mode = "zen-mode"
      }
    },
    ["core.tempus"] = {},
    ["core.summary"] = {},
    ["core.dirman"] = {
      config = {
        workspaces = {
          notes = "~/notes", -- Format: <name_of_workspace> = <path_to_workspace_root>
        },
        -- Automatically detect whenever we have entered a subdirectory of a workspace
        autodetect = true,
        default_workspace = 'notes',
        open_last_workspace = false,
        index = "index.norg", -- The name of the main (root) .norg file
      }
    }
  }
})

vim.api.nvim_create_user_command('Notes', 'Neorg index', {})