diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2025-01-03 18:44:15 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2025-01-03 18:44:15 +0100 |
| commit | d981e8f9460f6434e60812780ed81eda54940a97 (patch) | |
| tree | ce872db52f44273f740a07e694abfb87c2b74d29 /cape.el | |
| parent | 2c4ed619518aeae22d2ea58bdff42efb1efa0a43 (diff) | |
cape-capf-super: Use extra metadata
Diffstat (limited to 'cape.el')
| -rw-r--r-- | cape.el | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -937,11 +937,7 @@ multiple super Capfs in the `completion-at-point-functions': `( ,beg ,end ,(lambda (str pred action) (pcase action - (`(boundaries . ,_) nil) - ('metadata - '(metadata (category . cape-super) - (display-sort-function . identity) - (cycle-sort-function . identity))) + ((or `(boundaries . ,_) 'metadata) nil) ('t ;; all-completions (let ((ht (make-hash-table :test #'equal)) (candidates nil)) @@ -986,6 +982,9 @@ multiple super Capfs in the `completion-at-point-functions': (lambda (x) (and (funcall table-pred x) (funcall pred x))) (or table-pred pred))))))) :company-prefix-length ,prefix-len + :category cape-super + :display-sort-function identity + :cycle-sort-function identity ,@(and (not exclusive) '(:exclusive no)) ,@(mapcan (lambda (prop) |
