-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneorg.lua
31 lines (31 loc) · 891 Bytes
/
neorg.lua
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
return {
"nvim-neorg/neorg",
ft = "norg",
dependencies = { "vhyrro/luarocks.nvim" },
version = "*", -- pin Neorg to the latest stable release
opts = {
load = {
["core.defaults"] = {},
["core.concealer"] = {},
["core.dirman"] = {
config = {
workspaces = {
notes = "~/norg_notes",
},
default_workspace = "notes",
},
},
},
},
init = function()
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
group = vim.api.nvim_create_augroup("Neorg", { clear = true }),
pattern = { "*.norg" },
callback = function()
vim.opt_local.conceallevel = 2
vim.opt_local.foldlevel = 99
end,
desc = "Set conceallevel=2 and foldlevel=99 for Neorg buffers",
})
end,
}