Set up some vim wiki options
- Set the filetype to markdown
- Set the filename transform to add the date
diff --git a/modules/neovim/wiki/wiki.vim b/modules/neovim/wiki/wiki.vim
index 2b3f1a6..e052683 100644
--- a/modules/neovim/wiki/wiki.vim
+++ b/modules/neovim/wiki/wiki.vim
@@ -1 +1,13 @@
let g:wiki_root = '~/Documents/wiki'
+let g:wiki_filetypes = ['md']
+let g:wiki_link_extension = '.md'
+
+
+let g:wiki_map_create_page = 'WikiCreateTransform'
+function WikiCreateTransform(name) abort
+ let l:name = wiki#get_root() . '/' . a:name
+ " If the file is new, then append the current date
+ return filereadable(l:name)
+ \ ? a:name
+ \ : a:name . '_' . strftime('%Y%m%d')
+endfunction