diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-05 03:40:16 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-05 03:40:16 +0900 |
| commit | 3fc699eea5ec5d0d2986aa9e5982d7cbde722867 (patch) | |
| tree | d5b54ddd6ba591aff4c4c4837a16cd9ca5b94440 /ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua | |
| parent | bc3c4dc00f4f61419217813a889574bfaafe3722 (diff) | |
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua index 4d01f59..a14181c 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua @@ -1,19 +1,6 @@ return { { "vimwiki/vimwiki", - cmd = { - "VimwikiIndex", - "VimwikiDeleteFile", - "Vimwiki2HTML", - "VimwikiAll2HTML", - "Vimwiki2HTMLBrowse", - "VimwikiGoto", - "VimwikiRenameFile", - "VimwikiSplitLink", - "VimwikiVSplitLink", - "VimwikiColorize", - "VimwikiDiaryGenerateLinks", - }, init = function() local wk = require("which-key") wk.add({ @@ -21,6 +8,7 @@ return { { "<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", @@ -29,6 +17,7 @@ return { [".markdown"] = "markdown", [".mdown"] = "markdown", } + -- Set up Vimwiki list vim.g.vimwiki_list = { { @@ -44,8 +33,8 @@ return { }, { "tools-life/taskwiki", - cmd = { "TaskWikiInfo", "TaskWikiSummary", "TaskWikiStart", "TaskWikiMod" }, ft = "vimwiki", + event = "VeryLazy", dependencies = { "vimwiki/vimwiki", "powerman/vim-plugin-AnsiEsc", @@ -53,9 +42,6 @@ return { "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" }, @@ -64,6 +50,9 @@ return { { "<leader>tG", group = "Ghistory" }, { "<leader>th", group = "History" }, }) + + vim.g.taskwiki_markup_syntax = "markdown" + vim.g.taskwiki_data_location = "~/.local/share/task" end, }, } |
