summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-05 02:39:54 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-05 02:39:54 +0900
commitbc3c4dc00f4f61419217813a889574bfaafe3722 (patch)
tree69883e8300f4c9b9ba835946d97ea71a75deb562 /ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
parentd29b84c02475e9cbd72c59528ad9950e9f26ad65 (diff)
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua69
1 files changed, 69 insertions, 0 deletions
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" },
+ { "<leader>w", group = "Vimwiki/Which-key" },
+ { "<leader>w<leader>", 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 = {
+ { "<leader>ww", ":VimwikiIndex<CR>", 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" },
+ { "<leader>tb", group = "Burndown" },
+ { "<leader>tc", group = "Choose" },
+ { "<leader>tG", group = "Ghistory" },
+ { "<leader>th", group = "History" },
+ })
+ end,
+ },
+}