diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-24 20:35:27 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-24 20:35:27 +0900 |
| commit | c80a54e42b52ce297f0f2f71af23c562832025c7 (patch) | |
| tree | dcce8bb977a770f473325d48f6f70b21d9818a40 /ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/vimwiki.lua | |
init
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/vimwiki.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/vimwiki.lua | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/vimwiki.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/vimwiki.lua new file mode 100644 index 0000000..73ed91c --- /dev/null +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/vimwiki.lua @@ -0,0 +1,64 @@ +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" }, + { "<leader>w<leader>", group = "Diary" }, + }) + end, + config = function() + -- 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" }, + dependencies = { + "vimwiki/vimwiki", + "powerman/vim-plugin-AnsiEsc", + "majutsushi/tagbar", + "farseer90718/vim-taskwarrior", + }, + config = function() + require("taskwiki").setup() + vim.keymap.set("n", "<leader>tvi", ":TaskWikiInfo<CR>", { desc = "Task wiki info" }) + vim.keymap.set("n", "<leader>tvS", ":TaskWikiSummary<CR>", { desc = "Task wiki summary" }) + vim.keymap.set("n", "<leader>tvm", ":TaskWikiMod<CR>", { desc = "Task wiki modify" }) + vim.keymap.set("n", "<leader>tvs", ":TaskWikiMod<CR>", { desc = "Task wiki modify" }) + end, + }, +} |
