summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Taylor <jtaylor@classicalconversations.com>2023-06-01 19:03:09 -0400
committerJackson Taylor <jtaylor@classicalconversations.com>2023-06-01 19:03:09 -0400
commitd606206110261d965f7b5eb9d1dbbfc8eb7d8281 (patch)
treea266ea1a600e0c056d47cbd92dface6e953b9938
parent47d1f0047bfa2d6bd916a748bcdd97bc9e9adb18 (diff)
Add vimwiki settings
This is a real help because I like keeping 2 separte wikis for work and personal
-rw-r--r--after/plugin/vimwiki.lua21
-rw-r--r--lua/jacksontaylorxyz/packer.lua7
2 files changed, 28 insertions, 0 deletions
diff --git a/after/plugin/vimwiki.lua b/after/plugin/vimwiki.lua
new file mode 100644
index 0000000..89de46f
--- /dev/null
+++ b/after/plugin/vimwiki.lua
@@ -0,0 +1,21 @@
+-- I don't think this is read for some reason. Anytime I change it here, the settings don't change.
+vim.g.vimwiki_list = {
+ {
+ path = '~/vimwiki/test/',
+ path_html = '~/vimwiki/test/html',
+ syntax = 'markdown',
+ ext = '.md'
+ },
+ {
+ path = '~/vimwiki/work/',
+ path_html = '~/vimwiki/work/html',
+ syntax = 'default',
+ ext = '.wiki'
+ },
+ {
+ path = '~/vimwiki/personal/',
+ path_html = '~/vimwiki/personal/html',
+ syntax = 'default',
+ ext = '.wiki'
+ }
+}
diff --git a/lua/jacksontaylorxyz/packer.lua b/lua/jacksontaylorxyz/packer.lua
index 1b99e89..2cf9c06 100644
--- a/lua/jacksontaylorxyz/packer.lua
+++ b/lua/jacksontaylorxyz/packer.lua
@@ -40,8 +40,15 @@ return require('packer').startup(function(use)
use {
'vimwiki/vimwiki', -- Diary and wiki suite
config = function()
+ -- This also doesn't seem to take effect until I run PackerCompile
vim.g.vimwiki_list = {
{
+ path = '~/vimwiki/test/',
+ path_html = '~/vimwiki/test/html',
+ syntax = 'markdown',
+ ext = '.md'
+ },
+ {
path = '~/vimwiki/work/',
path_html = '~/vimwiki/work/html',
syntax = 'default',