Adding iwki remap to obsidian

This commit is contained in:
Deepak Mallubhotla 2025-04-02 10:32:40 -05:00
parent 39f7662c54
commit 2c9be80508
Signed by: deepak
GPG Key ID: 47831B15427F5A55
2 changed files with 20 additions and 1 deletions

View File

@ -160,6 +160,8 @@ in
oil-nvim
wiki-vim
# apparently these plugins can coexist
render-markdown-nvim
vim-markdown
cmp-buffer
# vim-airline

View File

@ -1,4 +1,21 @@
vim.g.wiki_root = "/home/deepak/wiki"
-- vim.g.wiki_root = "/home/deepak/wiki"
vim.g.wiki_root = vim.env.DPK_OBSIDIAN_DIR
vim.g.wiki_journal = {
name = "100-daily",
date_format = {
daily = "%Y/%m/%Y-%m-%d",
weekly = "%Y/week_%V",
monthly = "%Y/%m/summary.md",
},
}
vim.g.wiki_select_method = {
-- pages = require("wiki.ui_select").pages,
pages = "wiki#fzf#pages",
tags = require("wiki.ui_select").tags,
-- toc = require("wiki.ui_select").toc,
-- links = require("wiki.ui_select").links,
}
local function find_wiki_path_for_file(filename)
-- recursively search for the file name in the wiki_root using ripgrep