Temporarily remove company-yasnippet backend
I have to investigate why it triggers some weird side effects with anaconda source.
This commit is contained in:
parent
8c05eaa19e
commit
c291d0e9c3
|
@ -12,12 +12,18 @@
|
||||||
|
|
||||||
(defun spacemacs/company-backend-with-yas (backend)
|
(defun spacemacs/company-backend-with-yas (backend)
|
||||||
"Return BACKEND with support for yasnippet candidates."
|
"Return BACKEND with support for yasnippet candidates."
|
||||||
(if (and (configuration-layer/package-declaredp 'yasnippet)
|
backend
|
||||||
company-mode-enable-yas
|
;; ------------------
|
||||||
(not (eq 'company-semantic backend)))
|
;; syl20bnr: For now adding company-snippet to some backend like anaconda
|
||||||
(unless (and (listp backend) (member 'company-yasnippet backend))
|
;; has weird side effects, I need to investigate a little more on this
|
||||||
(append (if (listp backend) backend (list backend))
|
;; ------------------
|
||||||
(list :with 'company-yasnippet)))
|
;; (if (and (configuration-layer/package-declaredp 'yasnippet)
|
||||||
;; (cons backend '(company-yasnippet)))
|
;; company-mode-enable-yas
|
||||||
backend))
|
;; (not (eq 'company-semantic backend)))
|
||||||
|
;; (unless (and (listp backend) (member 'company-yasnippet backend))
|
||||||
|
;; (append (if (listp backend) backend (list backend))
|
||||||
|
;; (list :with 'company-yasnippet)))
|
||||||
|
;; ;; (cons backend '(company-yasnippet)))
|
||||||
|
;; backend)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue