zettelkasten.nvim/plugin/zettelkasten.vim
Marty Oehme f67c22bfa7
Move debug plugin setup to separate debug.vim file
Begin to prepare using the plugin by moving debug stuff away from the
normal mode of operation.
2021-05-04 14:08:05 +02:00

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