zettelkasten.nvim/plugin/zettelkasten.vim
Marty Oehme bd2481d41e
Rename index opening function
Renamed function to fit in line with other exposed lua API, putting
object before action, i.e. zettel_index_open instead of open_index.
2021-10-20 16:38:58 +02:00

15 lines
570 B
VimL

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>
nnoremap <Plug>zettel_index_open :lua require 'zettelkasten'.open_index()<cr>
let g:loaded_zettelkasten = 1