lang/python: set :company-backend sooner #369
company-anaconda was added to company-backends too late, causing code completion not to work in first-time python buffers.
This commit is contained in:
parent
0e392372df
commit
12ac162276
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,9 @@ is loaded.")
|
|||
:config
|
||||
(add-hook! 'python-mode-hook #'(flycheck-mode highlight-numbers-mode))
|
||||
|
||||
(set! :repl 'python-mode #'+python/repl)
|
||||
(set! :company-backend 'python-mode '(company-anaconda))
|
||||
(set! :electric 'python-mode :chars '(?:))
|
||||
(set! :repl 'python-mode #'+python/repl)
|
||||
|
||||
(when (executable-find "ipython")
|
||||
(setq python-shell-interpreter "ipython"
|
||||
|
@ -87,7 +88,6 @@ environment variables."
|
|||
:when (featurep! :completion company)
|
||||
:after anaconda-mode
|
||||
:config
|
||||
(set! :company-backend 'python-mode '(company-anaconda))
|
||||
(set! :lookup 'python-mode
|
||||
:definition #'anaconda-mode-find-definitions
|
||||
:references #'anaconda-mode-find-references
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue