BREAKING: Unify lua and plug API mappings
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Made the names of the functions to invoke the plugin the same. This is a BREAKING change if using the lua mappings. On the other hand, it should stay pretty stable for the foreseeable future, with only new ones added and possibly vim commands added.
This commit is contained in:
parent
49f0b10fde
commit
0e77624689
3 changed files with 23 additions and 21 deletions
|
|
@ -2,14 +2,14 @@ if exists('g:loaded_zettelkasten')
|
|||
finish
|
||||
endif
|
||||
|
||||
noremap <Plug>zettel_link_open :lua require 'zettelkasten'.open_link()<cr>
|
||||
noremap <Plug>zettel_link_open :lua require 'zettelkasten'.link_open()<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_make :lua require 'zettelkasten'.link_make()<cr>
|
||||
vnoremap <Plug>zettel_link_make :lua require 'zettelkasten'.link_make(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_link_follow :lua require 'zettelkasten'.link_follow()<cr>
|
||||
vnoremap <Plug>zettel_link_follow :lua require 'zettelkasten'.link_follow(true)<cr>
|
||||
|
||||
nnoremap <Plug>zettel_index_open :lua require 'zettelkasten'.open_index()<cr>
|
||||
nnoremap <Plug>zettel_index_open :lua require 'zettelkasten'.index_open()<cr>
|
||||
|
||||
let g:loaded_zettelkasten = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue