summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/vimwiki.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/vimwiki.lua')
-rw-r--r--.config/nvim/lua/plugins/vimwiki.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/vimwiki.lua b/.config/nvim/lua/plugins/vimwiki.lua
new file mode 100644
index 0000000..11d4c2b
--- /dev/null
+++ b/.config/nvim/lua/plugins/vimwiki.lua
@@ -0,0 +1,28 @@
1return {
2 {
3 "vimwiki/vimwiki",
4 init = function ()
5 vim.g.vimwiki_list = {
6 {
7 path = '/home/yigit/nextcloud/personal_wiki/text',
8 path_html = '/home/yigit/nextcloud/personal_wiki/html',
9 auto_generate_tags = 1,
10 automatic_nested_syntaxes = 1,
11 template_path = '/home/yigit/nextcloud/personal_wiki/templates',
12 template_default = 'default_template',
13 template_ext = '.html',
14 auto_export = 1,
15 auto_tags = 1
16 }
17 }
18 vim.g.vimwiki_hl_headers = 1
19
20 local map = require("helpers.keys").map
21
22 --toggle checkmarks
23 map('n', '<leader>v', '<Plug>VimwikiToggleListItem', "vimwiki: toggle checkmark")
24 -- add/increase header level
25 map('n', '<leader>a', '<Plug>VimwikiAddHeaderLevel', "vimwiki: add header level")
26 end,
27 },
28}