zettelkasten.nvim/plugin/zettelkasten.vim

15 lines
521 B
VimL
Raw Normal View History

" TODO remove after debugging
if exists('g:loaded_zettelkasten')
finish
endif
2020-10-26 14:55:40 +00:00
noremap <Plug>zettel_link_open :lua require 'zettelkasten'.open_link()<cr>
2020-10-26 14:55:40 +00:00
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