Only try to change the company backends when company-capf is found
This commit is contained in:
parent
48e7ba3c9e
commit
e79e21b410
1 changed files with 4 additions and 3 deletions
|
@ -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))
|
||||
|
||||
(when (member 'company-capf company-backends)
|
||||
(setf (car (member 'company-capf company-backends))
|
||||
'(company-capf :with company-yasnippet))
|
||||
'(company-capf :with company-yasnippet)))
|
||||
|
||||
(add-hook 'company-completion-started-hook 'oni-company--enable-posframe)
|
||||
|
||||
|
|
Loading…
Reference in a new issue