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-19 18:34:13 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-19 18:34:13 +0900
commit307fceea38b7352a79b0bdb87025a34b76973867 (patch)
tree382eb3e6a11973bc2c6ba33eee14d43ec2a9566b /ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
parentb66f68b8c014a3041c936ee9de1b57db5bcb50fb (diff)
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua172
1 files changed, 0 insertions, 172 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
deleted file mode 100644
index eda6e6f..0000000
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
+++ /dev/null
@@ -1,172 +0,0 @@
-return {
- {
- "vimwiki/vimwiki",
- init = function()
- local wk = require("which-key")
- wk.add({
- mode = { "n" },
- { "<leader>w", group = "Vimwiki/Which-key" },
- { "<leader>w<leader>", 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 = {
- { "<leader>ww", ":VimwikiIndex<CR>", desc = "Vimwiki index" },
- { "<leader>wu", ":VimwikiUISelect<CR>", desc = "Vimwiki UI" },
- },
- },
- {
- "tools-life/taskwiki",
- ft = "vimwiki",
- event = "VeryLazy",
- dependencies = {
- "vimwiki/vimwiki",
- {
- "powerman/vim-plugin-AnsiEsc",
- config = function()
- pcall(vim.keymap.del, "n", "<leader>swp")
- pcall(vim.keymap.del, "n", "<leader>rwp")
- end,
- },
- "majutsushi/tagbar",
- "farseer90718/vim-taskwarrior",
- },
- config = function()
- 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" },
- })
-
- 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 = { { "<leader>cA", "<cmd>CalendarT<CR>", desc = "Open calendar" } },
- },
- },
- init = function()
- local wk = require("which-key")
- wk.add({
- mode = { "n" },
- { "<leader>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 = {
- {
- "<leader>fn",
- function()
- require("telekasten").find_notes()
- end,
- desc = "Find notes",
- },
- {
- "<leader>np",
- function()
- require("telekasten").panel()
- end,
- desc = "Open note panel",
- },
- {
- "<leader>sn",
- function()
- require("telekasten").search_notes()
- end,
- desc = "Search notes",
- },
- {
- "<leader>nt",
- function()
- require("telekasten").goto_today()
- end,
- desc = "Goto today notes",
- },
- {
- "<leader>nl",
- function()
- require("telekasten").follow_link()
- end,
- desc = "Follow link",
- },
- {
- "<leader>nn",
- function()
- require("telekasten").new_note()
- end,
- desc = "Open new note",
- },
- {
- "<leader>ca",
- function()
- require("telekasten").show_calendar()
- end,
- desc = "Show calendar",
- },
- {
- "<leader>nb",
- function()
- require("telekasten").show_backlinks()
- end,
- desc = "Show backlinks",
- },
- {
- "<leader>ii",
- function()
- require("telekasten").insert_img_link()
- end,
- desc = "Insert image link",
- },
- {
- mode = "i",
- "]]",
- function()
- require("telekasten").insert_link()
- end,
- desc = "Insert link",
- },
- },
- },
-}