feat(neovim): extend neorg config
This commit is contained in:
parent
221e73df12
commit
42e069fd0f
|
@ -50,6 +50,7 @@ cmp.setup({
|
|||
},
|
||||
sources = cmp.config.sources({
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "neorg" },
|
||||
{ name = "luasnip" },
|
||||
{ name = "path" },
|
||||
})
|
||||
|
|
|
@ -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>" })
|
||||
|
|
Loading…
Reference in a new issue