From bc3c4dc00f4f61419217813a889574bfaafe3722 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 5 Jun 2025 02:39:54 +0900 Subject: updates --- .../TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua') diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua new file mode 100644 index 0000000..4d01f59 --- /dev/null +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua @@ -0,0 +1,69 @@ +return { + { + "vimwiki/vimwiki", + cmd = { + "VimwikiIndex", + "VimwikiDeleteFile", + "Vimwiki2HTML", + "VimwikiAll2HTML", + "Vimwiki2HTMLBrowse", + "VimwikiGoto", + "VimwikiRenameFile", + "VimwikiSplitLink", + "VimwikiVSplitLink", + "VimwikiColorize", + "VimwikiDiaryGenerateLinks", + }, + init = function() + local wk = require("which-key") + wk.add({ + mode = { "n" }, + { "w", group = "Vimwiki/Which-key" }, + { "w", group = "Diary" }, + }) + -- Ensure files are read with the desired filetype + vim.g.vimwiki_ext2syntax = { + [".Rmd"] = "markdown", + [".rmd"] = "markdown", + [".md"] = "markdown", + [".markdown"] = "markdown", + [".mdown"] = "markdown", + } + -- Set up Vimwiki list + vim.g.vimwiki_list = { + { + path = vim.fn.expand("~/.local/share/vimwiki"), + syntax = "markdown", + ext = ".md", + }, + } + end, + keys = { + { "ww", ":VimwikiIndex", desc = "Vimwiki index" }, + }, + }, + { + "tools-life/taskwiki", + cmd = { "TaskWikiInfo", "TaskWikiSummary", "TaskWikiStart", "TaskWikiMod" }, + ft = "vimwiki", + dependencies = { + "vimwiki/vimwiki", + "powerman/vim-plugin-AnsiEsc", + "majutsushi/tagbar", + "farseer90718/vim-taskwarrior", + }, + config = function() + vim.g.taskwiki_markup_syntax = "markdown" + vim.g.taskwiki_data_location = "~/.local/share/task" + + local wk = require("which-key") + wk.add({ + mode = { "n" }, + { "tb", group = "Burndown" }, + { "tc", group = "Choose" }, + { "tG", group = "Ghistory" }, + { "th", group = "History" }, + }) + end, + }, +} -- cgit v1.2.3