Reconfigures org mode and zen mode

This commit is contained in:
Dennis Schoepf 2025-01-30 22:24:49 +01:00
parent 26746d6492
commit 575d803160
5 changed files with 35 additions and 10 deletions

View file

@ -18,9 +18,24 @@ return {
org_startup_folded = "content",
org_ellipsis = "",
org_capture_templates = {
t = { description = "Task", template = "* TODO %?\n" },
l = { description = "Link", template = "* TODO [[%x]]%?" },
a = { description = "Task at line", template = "* TODO %?\nat: %a" },
t = { description = "(t)odo", template = "* TODO %?\n" },
a = { description = "Todo (a)t line", template = "* TODO %?\nat: %a" },
l = { description = "(l)ink", template = "* %x%?" },
j = {
description = "(j)ournal entry",
template = "\n** %?",
datetree = {
tree_type = "custom",
tree = {
{
format = "%Y-%m-%d",
pattern = "^(%d%d%d%d)-(%d%d)-(%d%d)$",
order = { 1 },
},
},
},
target = "~/orgnzr/journal.org",
},
},
})

View file

@ -179,5 +179,6 @@ return {
mode = "n",
},
{ "<leader>xr", "<cmd>source $MYVIMRC<cr>", desc = "Reload config", mode = "n" },
{ "<leader>z", "<cmd>ZenMode<cr>", desc = "Toggle ZenMode", mode = "n" },
},
}

View file

@ -1,4 +1,14 @@
return {
"folke/zen-mode.nvim",
opts = {},
opts = {
window = {
backdrop = 1,
width = 100,
options = {
number = false,
relativenumber = false,
signcolumn = "no",
},
},
},
}