From 098b3c055eb59fb9bd8b26c2f0d16ff8b57a1d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20L=C3=BCdecke?= Date: Thu, 26 Sep 2024 11:25:32 +0200 Subject: [PATCH] Configured calendar and bound to c --- lua/keybindings.lua | 3 +++ lua/options.lua | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/lua/keybindings.lua b/lua/keybindings.lua index 2753031..59380b8 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -18,6 +18,9 @@ vim.keymap.set('n', 'z=', fzf.spell_suggest, { desc = "Spelling suggestions" }) 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" }) + -- -- configure workspaces -- also add a custom picker to fzf diff --git a/lua/options.lua b/lua/options.lua index 09c42cd..57880df 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -46,6 +46,17 @@ vim.opt.wrap = false vim.opt.spell = true vim.opt.spelllang = "de,en" +-------------------------------------------------- +-- +-- calendar.vim options +-- +-------------------------------------------------- +-- :Calendar -split=horizontal -position=below -height=12 + +vim.g.calendar_first_day = "monday" +vim.g.calendar_view = "year" +vim.g.calendar_week_number = true + -------------------------------------------------- -- -- Other options