zettelkasten.nvim/plugin/zettelkasten.vim

16 lines
434 B
VimL
Raw Normal View History

2020-10-26 14:55:40 +00:00
fun! ZKReload()
" for DEBUGGING
lua for k in pairs(package.loaded) do if k:match("^zettelkasten") then package.loaded[k] = nil end end
echom 'zettelkasten reloaded'
lua require 'zettelkasten'.init()
endfun
augroup Zettelkasten
autocmd!
augroup END
" nnoremap <Plug>Zettel_Link :call zettelkasten#zettel_link()<cr>
nnoremap <Plug>Zettel_Link :lua require 'zettelkasten'.zettel_link()<cr>
nmap <leader>p <Plug>Zettel_Link