commit: f902309ee838fcbf863d95620dabe2d2732c2c10
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 16 21:29:14 2022 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Aug 16 21:29:14 2022 +0000
URL:
https://gitweb.gentoo.org/proj/company-ebuild.git/commit/?id=f902309e
company-ebuild.el: set company-minimum-prefix-length to 1
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
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)