From 7abaacdd7b7ebadaa6833c200eead4e84cb236d8 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Fri, 6 Jun 2025 16:09:08 +0900 Subject: modified plugins/colorizer.lua, modified plugins/wiki.lua --- ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorizer.lua | 7 +++++++ ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua | 11 +++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorizer.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorizer.lua index bb1b9d1..33e9ca7 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorizer.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorizer.lua @@ -3,6 +3,13 @@ return { event = "BufReadPre", opts = { -- set to setup table }, + init = function() + local wk = require("which-key") + wk.add({ + mode = { "n" }, + { "zh", group = "Colorizer" }, + }) + end, config = function() require("colorizer").setup({ filetypes = { "*" }, -- Filetype options. Accepts table like `user_default_options` diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua index 83213ba..1048a1e 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua @@ -68,7 +68,14 @@ return { "renerocksai/telekasten.nvim", dependencies = { "nvim-telescope/telescope.nvim", - "nvim-telekasten/calendar-vim", + { + "nvim-telekasten/calendar-vim", + init = function() + vim.g.calendar_diary = "~/.local/share/vimwiki/diary" + vim.g.calendar_no_mappings = 1 + end, + keys = { { "cA", "CalendarT", desc = "Open calendar" } }, + }, }, init = function() local wk = require("which-key") @@ -126,7 +133,7 @@ return { desc = "Open new note", }, { - "tc", + "ca", function() require("telekasten").show_calendar() end, -- cgit v1.2.3