company-jedi
company-jedi copied to clipboard
Can not auto complete for PyQt4
It's normal to work like this:
import json
import os
import sys
...
but can not complete for PyQt4:
from PyQt4 import QtGui,QtCore
QtGui.(nothing happend)
my configuration:
(require 'company)
(add-hook 'after-init-hook 'global-company-mode)
(setq company-show-numbers t); display serial number
(setq company-idle-delay 0.2); menu delay
(setq company-minimum-prefix-length 1); start completelyness number
(setq company-idle-delay 0.2;
company-minimum-prefix-length 1;
company-require-match nil
company-dabbrev-ignore-case nil
company-dabbrev-downcase nil
company-show-numbers t;
company-transformers '(company-sort-by-backend-importance)
company-continue-commands '(not helm-dabbrev)
)
(require 'company-jedi)
(setq jedi:environment-root "jedi")
(setq jedi:server-command (jedi:-env-server-command))
(defun config/enable-jedi ()
(add-to-list 'company-backends 'company-jedi))
(add-hook 'python-mode-hook 'jedi:setup)
(add-hook 'python-mode-hook 'config/enable-jedi)
(setq jedi:complete-on-dot t)
(setq jedi:use-shortcuts t)
I have the same problem today. Since I use Elpy, removing company-jedi config and using 'bare' Elpy works for me