Marty Oehme
f67c22bfa7
Begin to prepare using the plugin by moving debug stuff away from the normal mode of operation.
14 lines
521 B
VimL
14 lines
521 B
VimL
" TODO remove after debugging
|
|
if exists('g:loaded_zettelkasten')
|
|
finish
|
|
endif
|
|
|
|
noremap <Plug>zettel_link_open :lua require 'zettelkasten'.open_link()<cr>
|
|
|
|
nnoremap <Plug>zettel_link_make :lua require 'zettelkasten'.make_link()<cr>
|
|
vnoremap <Plug>zettel_link_make :lua require 'zettelkasten'.make_link(true)<cr>
|
|
|
|
nnoremap <Plug>zettel_link_follow :lua require 'zettelkasten'.open_or_make_link()<cr>
|
|
vnoremap <Plug>zettel_link_follow :lua require 'zettelkasten'.open_or_make_link(true)<cr>
|
|
|
|
let g:loaded_zettelkasten = 1
|