1
0
Fork 0

Only try to change the company backends when company-capf is found

This commit is contained in:
Tom Willemse 2021-02-14 18:42:10 -08:00
parent 48e7ba3c9e
commit e79e21b410

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2020.0408.110439
;; Version: 2021.0214.181156
;; Package-Requires: (company oni-prescient company-posframe diminish company-prescient)
;; This program is free software; you can redistribute it and/or modify
@ -51,8 +51,9 @@
company-echo-metadata-frontend
company-preview-frontend))
(setf (car (member 'company-capf company-backends))
'(company-capf :with company-yasnippet))
(when (member 'company-capf company-backends)
(setf (car (member 'company-capf company-backends))
'(company-capf :with company-yasnippet)))
(add-hook 'company-completion-started-hook 'oni-company--enable-posframe)