Init with overwin motions

fix #268
This commit is contained in:
haya14busa 2016-01-28 17:57:37 +09:00
parent 799491e007
commit b1acf6712d
2 changed files with 7 additions and 0 deletions

View File

@ -16,7 +16,12 @@ let s:DIRECTION = { 'forward': 0, 'backward': 1, 'bidirection': 2}
" Init: {{{ " Init: {{{
let s:loaded = s:FALSE
function! EasyMotion#init() function! EasyMotion#init()
if s:loaded
return
endif
let s:loaded = s:TRUE
call EasyMotion#highlight#load() call EasyMotion#highlight#load()
" Store previous motion info " Store previous motion info
let s:previous = {} let s:previous = {}

View File

@ -1,6 +1,8 @@
let s:V = vital#of('easymotion') let s:V = vital#of('easymotion')
let s:HitAHintMotion = s:V.import('HitAHint.Motion') let s:HitAHintMotion = s:V.import('HitAHint.Motion')
call EasyMotion#init()
function! EasyMotion#overwin#move(pattern) abort function! EasyMotion#overwin#move(pattern) abort
return s:HitAHintMotion.move(a:pattern, { return s:HitAHintMotion.move(a:pattern, {
\ 'keys': g:EasyMotion_keys, \ 'keys': g:EasyMotion_keys,