diff options
Diffstat (limited to '.config/nvim/lua/plugins/vimwiki.lua')
-rw-r--r-- | .config/nvim/lua/plugins/vimwiki.lua | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/.config/nvim/lua/plugins/vimwiki.lua b/.config/nvim/lua/plugins/vimwiki.lua index a114b04..5f1d661 100644 --- a/.config/nvim/lua/plugins/vimwiki.lua +++ b/.config/nvim/lua/plugins/vimwiki.lua | |||
@@ -1,6 +1,6 @@ | |||
1 | return { | 1 | return { |
2 | { | 2 | { |
3 | "yigitsever/vimwiki", | 3 | "vimwiki/vimwiki", |
4 | init = function() | 4 | init = function() |
5 | vim.g.vimwiki_list = { | 5 | vim.g.vimwiki_list = { |
6 | { | 6 | { |
@@ -17,13 +17,12 @@ return { | |||
17 | } | 17 | } |
18 | vim.g.vimwiki_global_ext = 0 | 18 | vim.g.vimwiki_global_ext = 0 |
19 | vim.g.vimwiki_hl_headers = 1 | 19 | vim.g.vimwiki_hl_headers = 1 |
20 | |||
21 | local map = require("helpers.keys").map | ||
22 | |||
23 | --toggle checkmarks | ||
24 | map('n', '<leader>v', '<Plug>VimwikiToggleListItem', "vimwiki: toggle checkmark") | ||
25 | -- add/increase header level | ||
26 | map('n', '<leader>a', '<Plug>VimwikiAddHeaderLevel', "vimwiki: add header level") | ||
27 | end, | 20 | end, |
21 | keys = { | ||
22 | { "<leader>ww", "<cmd>VimwikiIndex<cr>", "vimwiki: goto wiki" }, | ||
23 | { "<leader>v", "<cmd>VimwikiToggleListItem<cr>", "vimwiki: toggle checkmark" }, | ||
24 | { "<leader>a", "<cmd>VimwikiAddHeaderLevel<cr>", "vimwiki: add header level" } | ||
25 | }, | ||
26 | ft = { "vimwiki" } | ||
28 | }, | 27 | }, |
29 | } | 28 | } |