zettelkasten.nvim/plugin/zettelkasten.vim

16 lines
496 B
VimL
Raw Normal View History

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