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

38 lines
1.1 KiB
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 = '✗○◐●✓'
2023-02-08 18:24:11 +00:00
augroup VimwikiBufEnterMarkdown
autocmd!
autocmd BufEnter *.md setl syntax=markdown
augroup END
command! -count=0 -nargs=1 VimwikiOpenSubdirectoryIndex :lua require('esensar.vimwiki_extensions').open_subdirectory_index_file(<count>, <f-args>)