feat(neovim): extend neorg config

This commit is contained in:
Felix Schröter 2022-05-27 00:49:47 +02:00
parent 221e73df12
commit 42e069fd0f
Signed by: felschr
GPG key ID: 671E39E6744C807D
2 changed files with 41 additions and 3 deletions

View file

@ -50,6 +50,7 @@ cmp.setup({
},
sources = cmp.config.sources({
{ name = "nvim_lsp" },
{ name = "neorg" },
{ name = "luasnip" },
{ name = "path" },
})

View file

@ -1,6 +1,12 @@
require("neorg").setup {
load = {
["core.defaults"] = {},
["core.norg.concealer"] = {},
["core.norg.completion"] = {
config = {
engine = "nvim-cmp",
},
},
["core.norg.dirman"] = {
config = {
workspaces = {
@ -9,11 +15,42 @@ require("neorg").setup {
},
},
},
["core.norg.concealer"] = {},
["core.norg.completion"] = {
["core.norg.qol.toc"] = {},
["core.gtd.base"] = {
config = {
engine = "nvim-cmp",
workspace = "home",
},
},
},
}
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>" })