From 811b7d9c07c86f548ff98bd7cec32b806cd6db85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20L=C3=BCdecke?= Date: Sun, 8 Jun 2025 07:53:05 +0200 Subject: [PATCH] C for vertical calendar, todo snippet with an extra space --- after/ftplugin/asciidoc.lua | 1 + lua/keybindings.lua | 3 ++- snippets/all.snippets | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/after/ftplugin/asciidoc.lua b/after/ftplugin/asciidoc.lua index 2d84c47..bb968e2 100644 --- a/after/ftplugin/asciidoc.lua +++ b/after/ftplugin/asciidoc.lua @@ -1,2 +1,3 @@ -- Options for AsciiDoc files, mainly used in diary situations +-- (pun intended) vim.opt.textwidth = 80 diff --git a/lua/keybindings.lua b/lua/keybindings.lua index 3efb241..95123a2 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -20,7 +20,8 @@ vim.keymap.set('n', 'g', ":Neogit", { desc = "Neogit" }) vim.keymap.set('n', 'T', ":Neotree reveal", { desc = "File Manager" }) -- calendar -vim.keymap.set('n', 'c', ":Calendar -split=horizontal -position=below -height=12", { desc = "Show calendar" }) +vim.keymap.set('n', 'c', ":Calendar -split=horizontal -position=below -height=12", { desc = "Show calendar below" }) +vim.keymap.set('n', 'C', ":Calendar -view=year -split=vertical -width=27", { desc = "Show calendar right" }) -- Open current file in browser (chromium) vim.keymap.set('n', 'o', ":silent !chromium '%'", { desc = "Open in browser" }) diff --git a/snippets/all.snippets b/snippets/all.snippets index 5d27647..70069e5 100644 --- a/snippets/all.snippets +++ b/snippets/all.snippets @@ -1,7 +1,7 @@ # ccflow local snippets for all modes snippet todo "Add a TODO marker" - // TODO.`strftime("%Y-%m-%d -")` + // TODO.`strftime("%Y-%m-%d -")` snippet note "Add a NOTE marker" // NOTE.`strftime("%Y-%m-%d -")`