-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathneorg.lua
More file actions
32 lines (32 loc) · 910 Bytes
/
neorg.lua
File metadata and controls
32 lines (32 loc) · 910 Bytes
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
---@type LazyPluginSpec
return {
"nvim-neorg/neorg",
ft = "norg",
version = "*", -- pin Neorg to the latest stable release
opts = {
load = {
["core.defaults"] = {},
["core.concealer"] = {},
["core.dirman"] = {
config = {
workspaces = {
notes = vim.fs.normalize("~/notes/neorg"),
},
default_workspace = "notes",
},
},
},
},
init = function()
local grp = vim.api.nvim_create_augroup("Neorg", { clear = true })
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
group = grp,
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,
}