diff options
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua | 92 |
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", + }, + }, + }, } |
