Demote overly aggressive completion styles
Use the Helm completion styles only as a fallback. They match so eagerly that they disrupt other facilities like company.
This commit is contained in:
parent
304424d844
commit
4e7ce47825
1 changed files with 10 additions and 5 deletions
|
@ -89,13 +89,18 @@ be negative.")
|
||||||
helm-semantic-fuzzy-match fuzzy)
|
helm-semantic-fuzzy-match fuzzy)
|
||||||
;; Make sure that we have helm-multi-matching or fuzzy matching,
|
;; Make sure that we have helm-multi-matching or fuzzy matching,
|
||||||
;; (as prescribed by the fuzzy flag) also in the following cases:
|
;; (as prescribed by the fuzzy flag) also in the following cases:
|
||||||
|
;;
|
||||||
;; - helmized commands that use `completion-at-point' and similar functions
|
;; - helmized commands that use `completion-at-point' and similar functions
|
||||||
;; - native commands that fall back to `completion-styles' like `helm-M-x'
|
;; - native commands that fall back to `completion-styles' like `helm-M-x'
|
||||||
(push (if EMACS27+
|
;;
|
||||||
(if fuzzy 'flex 'helm)
|
;; However, do not add helm completion styles to the front of
|
||||||
(if fuzzy 'helm-flex 'helm))
|
;; `completion-styles', since that would be overly intrusive. E.g., it
|
||||||
completion-styles))
|
;; results in `company-capf' returning far to many completion candidates.
|
||||||
|
;; Instead, append those styles so that they act as a fallback.
|
||||||
|
(add-to-list 'completion-styles
|
||||||
|
(if EMACS27+
|
||||||
|
(if fuzzy 'flex 'helm)
|
||||||
|
(if fuzzy 'helm-flex 'helm)) t))
|
||||||
:config
|
:config
|
||||||
(set-popup-rule! "^\\*helm" :vslot -100 :size 0.22 :ttl nil)
|
(set-popup-rule! "^\\*helm" :vslot -100 :size 0.22 :ttl nil)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue