From f902309ee838fcbf863d95620dabe2d2732c2c10 Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Tue, 16 Aug 2022 23:29:14 +0200 Subject: company-ebuild.el: set company-minimum-prefix-length to 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- company-ebuild.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/company-ebuild.el b/company-ebuild.el index 3f4cceb..0eb20f6 100644 --- a/company-ebuild.el +++ b/company-ebuild.el @@ -87,7 +87,6 @@ " license") ((executable-find candidate) " executable") - ;; TODO: Complete any string that already appears in current buffer. (t ""))) @@ -237,6 +236,7 @@ ARG is the completion argument for annotation and candidates." (company-ebuild--annotation arg)) (candidates ;; FIXME: Can not insert the "/" character. + ;; TODO: Complete any string that already appears in current buffer. (cl-remove-if-not (lambda (candidate) (string-prefix-p arg candidate t)) (append company-ebuild--constant-keywords @@ -262,7 +262,9 @@ or `require' Company-Ebuild: ((fboundp 'company-yasnippet) (add-to-list 'company-backends '(company-ebuild :with company-yasnippet))) (t - (add-to-list 'company-backends 'company-ebuild)))) + (add-to-list 'company-backends 'company-ebuild))) + ;; Because some completions have length 1: + (setq-local company-minimum-prefix-length 1)) ;;;###autoload (add-hook 'ebuild-mode-hook 'company-ebuild-setup) -- cgit v1.2.3-65-gdbad