maralla / completor.vim

Async completion framework made ease.
MIT License
1.27k stars 63 forks source link

completor doesn't see PATH #240

Open ghost opened 5 years ago

ghost commented 5 years ago

I have this

` 1 filetype on
  2 set rtp+=~/.vim/bundle/Vundle.vim
  3 call vundle#begin()
  4 Plugin 'VundleVim/Vundle.vim'
  5 Plugin 'maralla/completor.vim'
  6 call vundle#end()
  7 let g:completor_python_binary = '/usr/bin/python3'
  8 let g:completor_clang_binary = '/usr/bin/clang'
  9 filetype plugin indent on
 10 hi link pythonSpaceError Normal
 11 set nocompatible
 12 set rtp+=~/.vim/bundle/Vundle.vim
 13 set t_Co=256
 14 set nu
 15 set nobackup
 16 set noswapfile
 17 set tabstop=4
 18 set softtabstop=4
 19 set shiftwidth=4
 20 set noexpandtab

i installed a completer, global jeti (pip3 install jeti). I wrote PATHS to clang and python with jeti. Clans works, all is ok, but jeti doesn't work. By PATHS i mean number 7 and 8. I write s t r in .py file and it doesn't offer me varieties. I tried to change second PATH to jedi folder in /usr/local/lib/python3.7/site-packages/jedi , but it didn't work. What should i do? Sorry for bad language, i am not a native speaker.

craigmac commented 5 years ago

Check if vim knows where you python3 home folder is with :set pythonthreehome?

Mine was blank: ""

So I just set it to where python3 home folder is: string "/usr/lib/python3.6" (change to your python version). Set this in vimrc near the top:

let pythonthreehome='/usr/lib/python3.6'
let g:completor_python_binary='/usr/bin/python3'

This fixed jedi completions for me after reloading vim. I have jedi installed using pip3 install jedi