Marty Oehme
bd2481d41e
Renamed function to fit in line with other exposed lua API, putting object before action, i.e. zettel_index_open instead of open_index.
15 lines
570 B
VimL
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
|