diff options
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/colorizer.lua | 7 | ||||
| -rw-r--r-- | 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" }, + { "<leader>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 = { { "<leader>cA", "<cmd>CalendarT<CR>", desc = "Open calendar" } }, + }, }, init = function() local wk = require("which-key") @@ -126,7 +133,7 @@ return { desc = "Open new note", }, { - "<leader>tc", + "<leader>ca", function() require("telekasten").show_calendar() end, |
