return { { "vimwiki/vimwiki", init = function() local wk = require("which-key") wk.add({ mode = { "n" }, { "w", group = "Vimwiki/Which-key" }, { "w", group = "Diary" }, }) -- Set up Vimwiki list vim.g.vimwiki_list = { { path = vim.fn.expand("~/.local/share/vimwiki"), template_path = vim.fn.expand("~/.local/share/vimwiki/templates"), auto_toc = 1, syntax = "markdown", nested_syntaxes = { python = "python", ["c++"] = "cpp", }, ext = ".md", }, } vim.g.vimwiki_global_ext = 1 -- Ensure files are read with the desired filetype vim.g.vimwiki_ext2syntax = { [".Rmd"] = "markdown", [".rmd"] = "markdown", [".md"] = "markdown", [".markdown"] = "markdown", [".mdown"] = "markdown", } end, keys = { { "ww", ":VimwikiIndex", desc = "Vimwiki index" }, { "wu", ":VimwikiUISelect", desc = "Vimwiki UI" }, }, }, { "tools-life/taskwiki", ft = "vimwiki", event = "VeryLazy", dependencies = { "vimwiki/vimwiki", "powerman/vim-plugin-AnsiEsc", "majutsushi/tagbar", "farseer90718/vim-taskwarrior", }, config = function() local wk = require("which-key") wk.add({ mode = { "n" }, { "tb", group = "Burndown" }, { "tc", group = "Choose" }, { "tG", group = "Ghistory" }, { "th", group = "History" }, }) vim.g.taskwiki_markup_syntax = "markdown" vim.g.taskwiki_data_location = "~/.local/share/task" end, }, { "renerocksai/telekasten.nvim", dependencies = { "nvim-telescope/telescope.nvim", { "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") wk.add({ mode = { "n" }, { "n", group = "Notes" }, }) end, config = function() require("telekasten").setup({ home = vim.fn.expand("~/.local/share/vimwiki"), -- Put the name of your notes directory here }) end, keys = { { "fn", function() require("telekasten").find_notes() end, desc = "Find notes", }, { "np", function() require("telekasten").panel() end, desc = "Open note panel", }, { "sn", function() require("telekasten").search_notes() end, desc = "Search notes", }, { "nt", function() require("telekasten").goto_today() end, desc = "Goto today notes", }, { "nl", function() require("telekasten").follow_link() end, desc = "Follow link", }, { "nn", function() require("telekasten").new_note() end, desc = "Open new note", }, { "ca", function() require("telekasten").show_calendar() end, desc = "Show calendar", }, { "nb", function() require("telekasten").show_backlinks() end, desc = "Show backlinks", }, { "ii", function() require("telekasten").insert_img_link() end, desc = "Insert image link", }, { mode = "i", "]]", function() require("telekasten").insert_link() end, desc = "Insert link", }, }, }, }