summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-08-16 23:29:14 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-08-16 23:29:14 +0200
commitf902309ee838fcbf863d95620dabe2d2732c2c10 (patch)
tree1ed027ba315248a60baa6314da55854a0d07555d
parentcompany-ebuild.el: extend company-ebuild-setup commentary (diff)
downloadcompany-ebuild-f902309ee838fcbf863d95620dabe2d2732c2c10.tar.gz
company-ebuild-f902309ee838fcbf863d95620dabe2d2732c2c10.tar.bz2
company-ebuild-f902309ee838fcbf863d95620dabe2d2732c2c10.zip
company-ebuild.el: set company-minimum-prefix-length to 1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rw-r--r--company-ebuild.el6
1 files 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)