summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/vimwiki.lua
diff options
context:
space:
mode:
authorYigit Sever2023-08-18 23:42:39 +0300
committerYigit Sever2023-08-18 23:42:39 +0300
commit387e08c52d9752bc839c71119f140ba8435c3d70 (patch)
tree3bb20c0e58ccf1e65ced4cfdfb6459e226a24672 /.config/nvim/lua/plugins/vimwiki.lua
parent14c14cfcc9aeb4bada6d2429162ded2917f26a94 (diff)
downloaddotfiles-387e08c52d9752bc839c71119f140ba8435c3d70.tar.gz
dotfiles-387e08c52d9752bc839c71119f140ba8435c3d70.tar.bz2
dotfiles-387e08c52d9752bc839c71119f140ba8435c3d70.zip
nvim: switch to lazy.nvim
revert this as whole, if you miss the good old days
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}