nixos-config/home/editors/neovim/neorg.lua

52 lines
906 B
Lua
Raw Normal View History

2022-05-19 00:51:22 +02:00
require("neorg").setup {
load = {
["core.defaults"] = {},
2023-05-31 17:25:46 +02:00
["core.concealer"] = {},
["core.completion"] = {
2022-05-27 00:49:47 +02:00
config = {
engine = "nvim-cmp",
},
},
2023-05-31 17:25:46 +02:00
["core.dirman"] = {
2022-05-19 00:51:22 +02:00
config = {
workspaces = {
work = "~/notes/work",
home = "~/notes/home",
},
},
},
2023-05-31 17:25:46 +02:00
["core.qol.toc"] = {},
2022-05-19 00:51:22 +02:00
},
}
2022-05-27 00:49:47 +02:00
vim.opt.conceallevel = 2
local wk = require("which-key")
wk.register({
name = "Neorg To-do actions",
u = "Undone",
p = "Pending",
d = "Done",
h = "On Hold",
c = "Cancelled",
i = "Important",
}, { mode = "n", prefix = "gt" })
wk.register({
m = {
name = "Neorg mode",
n = "norg",
h = "traverse-heading",
},
n = {
name = "Neorg dirman",
n = "New note",
},
t = {
name = "Neorg GTD",
c = "Capture",
e = "Edit",
v = "Views",
},
}, { mode = "n", prefix = "<localleader>" })