aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorxentac2016-11-21 14:04:08 -0800
committerGitHub2016-11-21 14:04:08 -0800
commitd337960f109ec6f53fb0d449a6e0d10c690d2b30 (patch)
treebba96bd7fd79bbca27c1258be94a39b518397218 /autoload
parent391df18ca139a611864bfea11e203976f16494fc (diff)
parent81e9f05e3a1eac547813b7d80bf7417f38be8346 (diff)
downloadvim-beancount-d337960f109ec6f53fb0d449a6e0d10c690d2b30.tar.gz
Merge pull request #31 from yagebu/master
add deoplete source
Diffstat (limited to '')
-rw-r--r--autoload/beancount.vim14
1 files changed, 7 insertions, 7 deletions
diff --git a/autoload/beancount.vim b/autoload/beancount.vim
index 9d18252..e262f11 100644
--- a/autoload/beancount.vim
+++ b/autoload/beancount.vim
@@ -113,7 +113,7 @@ function! beancount#complete(findstart, base)
endif
endfunction
-function! s:get_root()
+function! beancount#get_root()
if exists('b:beancount_root')
return b:beancount_root
endif
@@ -122,7 +122,7 @@ endfunction
function! beancount#load_everything()
if s:using_python3 && !exists('b:beancount_loaded')
- let l:root = s:get_root()
+ let l:root = beancount#get_root()
python3 << EOF
import vim
from beancount import loader
@@ -166,35 +166,35 @@ endfunction
function! beancount#load_accounts()
if !s:using_python3 && !exists('b:beancount_accounts')
- let l:root = s:get_root()
+ let l:root = beancount#get_root()
let b:beancount_accounts = beancount#find_accounts(l:root)
endif
endfunction
function! beancount#load_tags()
if !s:using_python3 && !exists('b:beancount_tags')
- let l:root = s:get_root()
+ let l:root = beancount#get_root()
let b:beancount_tags = beancount#find_tags(l:root)
endif
endfunction
function! beancount#load_links()
if !s:using_python3 && !exists('b:beancount_links')
- let l:root = s:get_root()
+ let l:root = beancount#get_root()
let b:beancount_links = beancount#find_links(l:root)
endif
endfunction
function! beancount#load_currencies()
if !s:using_python3 && !exists('b:beancount_currencies')
- let l:root = s:get_root()
+ let l:root = beancount#get_root()
let b:beancount_currencies = beancount#find_currencies(l:root)
endif
endfunction
function! beancount#load_payees()
if !s:using_python3 && !exists('b:beancount_payees')
- let l:root = s:get_root()
+ let l:root = beancount#get_root()
let b:beancount_payees = beancount#find_payees(l:root)
endif
endfunction