Files
nvim/after/plugin/neorg.lua
2024-04-08 18:33:13 -04:00

66 lines
1.3 KiB
Lua

local status_ok, neorg = pcall(require, "neorg")
if not status_ok then
return
end
local status_ok2, luarocks = pcall(require, "luarocks-nvim")
if not status_ok2 then
return
end
luarocks.setup {}
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"] = {},
}
}