Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Update, try.
Browse files Browse the repository at this point in the history
  • Loading branch information
takkii committed Apr 19, 2021
1 parent f181951 commit b9db67d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .idea/totolot.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions rplugin/python3/deoplete/sources/totolot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ def get_complete_position(self, context):
return m.start() if m else -1

def gather_candidates(self, context):
rel_path = "repos/github.com/takkii/ruby-dictionary3/"
try:
rel_path = "repos/github.com/takkii/ruby-dictionary3/"

paths = [os.path.expanduser(os.path.join(p, rel_path)) for p in [
"~/.cache/dein/",
"~/.local/share/dein/",
"~/.config/nvim/.cache/dein/",
"~/.config/nvim/",
"~/.vim/bundles"
]]
paths = [os.path.expanduser(os.path.join(p, rel_path)) for p in [
"~/.cache/dein/",
"~/.local/share/dein/",
"~/.config/nvim/.cache/dein/",
"~/.config/nvim/",
"~/.vim/bundles"
]]

try:
path = next(p for p in paths if os.path.exists(p))

ruby_method = open(os.path.join(path, "autoload/source/ruby_method_deoplete"))
Expand Down

0 comments on commit b9db67d

Please sign in to comment.