dotfiles/symlinks/config/nvim/plugin/vimwiki.vim

33 lines
997 B
VimL
Raw Normal View History

2021-02-23 11:27:32 +00:00
" Must be set up before vimwiki plugin is initialized, can't be in after
let personal_wiki = {}
let personal_wiki.path = '~/vimwiki/'
let personal_wiki.ext = '.md'
let personal_wiki.index = 'Home'
let personal_wiki.syntax = 'markdown'
let personal_wiki.auto_diary_index = 1
let personal_wiki.auto_generate_links = 1
let personal_wiki.auto_toc = 1
let work_wiki = {}
let work_wiki.path = '~/vimwiki_work/'
2021-04-09 13:52:45 +00:00
let work_wiki.index = 'Home'
2021-02-23 11:27:32 +00:00
let work_wiki.syntax = 'markdown'
let work_wiki.ext = '.md'
let work_wiki.auto_diary_index = 1
let work_wiki.auto_generate_links = 1
let work_wiki.auto_toc = 1
2021-04-09 13:52:45 +00:00
let test_wiki = {}
let test_wiki.path = '/tmp'
let g:vimwiki_list = [personal_wiki, work_wiki, test_wiki]
2021-02-23 11:27:32 +00:00
" Disable vimwiki filetype on all markdown files
let g:vimwiki_global_ext = 0
" Prettier checkboxes
let g:vimwiki_listsyms = '✗○◐●✓'
command! -count=0 -nargs=1 VimwikiOpenSubdirectoryIndex :lua require('esensar.vimwiki_extensions').open_subdirectory_index_file(<count>, <f-args>)