feat(neovim): extend neorg config
This commit is contained in:
parent
221e73df12
commit
42e069fd0f
|
@ -50,6 +50,7 @@ cmp.setup({
|
||||||
},
|
},
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp" },
|
||||||
|
{ name = "neorg" },
|
||||||
{ name = "luasnip" },
|
{ name = "luasnip" },
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
require("neorg").setup {
|
require("neorg").setup {
|
||||||
load = {
|
load = {
|
||||||
["core.defaults"] = {},
|
["core.defaults"] = {},
|
||||||
|
["core.norg.concealer"] = {},
|
||||||
|
["core.norg.completion"] = {
|
||||||
|
config = {
|
||||||
|
engine = "nvim-cmp",
|
||||||
|
},
|
||||||
|
},
|
||||||
["core.norg.dirman"] = {
|
["core.norg.dirman"] = {
|
||||||
config = {
|
config = {
|
||||||
workspaces = {
|
workspaces = {
|
||||||
|
@ -9,11 +15,42 @@ require("neorg").setup {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
["core.norg.concealer"] = {},
|
["core.norg.qol.toc"] = {},
|
||||||
["core.norg.completion"] = {
|
["core.gtd.base"] = {
|
||||||
config = {
|
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>" })
|
||||||
|
|
Loading…
Reference in a new issue