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 10:47:44 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-05 10:47:44 +0900
commit1f755938761193399cad1f740fe58ec2483c2eac (patch)
treebcaeb92d27e0306f0952a702589aaeb04d68d308 /ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
parent77e535a277b59db201847a23f1d827f3bba01e7f (diff)
modified core/keymaps.lua, modified plugins/markdown.lua, modified plugins/telescope.lua, modified plugins/wiki.lua, created plugins/todo.lua
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua92
1 files changed, 92 insertions, 0 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
index a14181c..3c94532 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
@@ -55,4 +55,96 @@ return {
vim.g.taskwiki_data_location = "~/.local/share/task"
end,
},
+ {
+ "renerocksai/telekasten.nvim",
+ dependencies = {
+ "nvim-telescope/telescope.nvim",
+ "nvim-telekasten/calendar-vim",
+ },
+ 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>tc",
+ 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",
+ },
+ },
+ },
}