vimwikidiary shortcut

This commit is contained in:
krolyxon 2023-03-22 19:05:21 +05:30
parent 5272c0a5ae
commit 6c34b63a2b
2 changed files with 15 additions and 0 deletions

View File

@ -10,6 +10,10 @@ M.general = {
["<C-j>"] = { "<C-w>j", "window down" }, ["<C-j>"] = { "<C-w>j", "window down" },
["<C-k>"] = { "<C-w>k", "window up" }, ["<C-k>"] = { "<C-w>k", "window up" },
-- cycleling through buffers
["tk"] = { "<cmd> bnext <CR>", "Next buffer" },
["tj"] = { "<cmd> bprev <CR>", "Previous buffer" },
-- Allow moving the cursor through wrapped lines with j, k, <Up> and <Down> -- Allow moving the cursor through wrapped lines with j, k, <Up> and <Down>
-- http://www.reddit.com/r/vim/comments/2k4cbr/problem_with_gj_and_gk/ -- http://www.reddit.com/r/vim/comments/2k4cbr/problem_with_gj_and_gk/
-- empty mode is same as using <cmd> :map -- empty mode is same as using <cmd> :map
@ -334,4 +338,14 @@ M.blankline = {
}, },
} }
M.vimwiki = {
plugin = true,
n = {
["<leader>wd"] = {
"<cmd> VimwikiDiaryIndex <CR>", "VimWiki Diary" ,
}
}
}
return M return M

View File

@ -147,6 +147,7 @@ local plugins = {
ext = '.md', ext = '.md',
} }
} }
require("core.utils").load_mappings "vimwiki"
end, end,
}, },