From 30225bdd1fb9f1155c74e46d98178c1222f5f452 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 28 Feb 2020 15:22:01 -0800 Subject: Add yasnippet to company-capf --- oni-company.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'oni-company.el') diff --git a/oni-company.el b/oni-company.el index d30a866..954dda7 100644 --- a/oni-company.el +++ b/oni-company.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2020.0225.101609 +;; Version: 2020.0228.151952 ;; Package-Requires: (company oni-prescient company-posframe diminish company-prescient) ;; This program is free software; you can redistribute it and/or modify @@ -49,6 +49,9 @@ company-echo-metadata-frontend company-preview-frontend)) +(setf (car (member 'company-capf company-backends)) + '(company-capf :with company-yasnippet)) + (add-hook 'company-completion-started-hook 'oni-company--enable-posframe) (company-prescient-mode) -- cgit v1.2.3-54-g00ecf