From 387e08c52d9752bc839c71119f140ba8435c3d70 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 18 Aug 2023 23:42:39 +0300 Subject: nvim: switch to lazy.nvim revert this as whole, if you miss the good old days --- .config/nvim/lua/plugins/vimwiki.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .config/nvim/lua/plugins/vimwiki.lua (limited to '.config/nvim/lua/plugins/vimwiki.lua') 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 @@ +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_hl_headers = 1 + + local map = require("helpers.keys").map + + --toggle checkmarks + map('n', 'v', 'VimwikiToggleListItem', "vimwiki: toggle checkmark") + -- add/increase header level + map('n', 'a', 'VimwikiAddHeaderLevel', "vimwiki: add header level") + end, + }, +} -- cgit v1.2.3-70-g09d2