1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
return {
{
"vimwiki/vimwiki",
init = function ()
vim.g.vimwiki_list = {
{
path = '/home/yigit/nextcloud/personal_wiki/text',
path_html = '/home/yigit/nextcloud/personal_wiki/html',
auto_generate_tags = 1,
automatic_nested_syntaxes = 1,
template_path = '/home/yigit/nextcloud/personal_wiki/templates',
template_default = 'default_template',
template_ext = '.html',
auto_export = 1,
auto_tags = 1
}
}
vim.g.vimwiki_global_ext = 0
vim.g.vimwiki_hl_headers = 1
local map = require("helpers.keys").map
--toggle checkmarks
map('n', '<leader>v', '<Plug>VimwikiToggleListItem', "vimwiki: toggle checkmark")
-- add/increase header level
map('n', '<leader>a', '<Plug>VimwikiAddHeaderLevel', "vimwiki: add header level")
end,
},
}
|