You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@
50
50
51
51
- Ensure that `cider` completion isn't used with completion styles that are currently unsupported (`initials`, `partial-completion`, `orderless`, etc).
52
52
- This restores completions for users that favor those styles - otherwise the would see bad or no completions.
53
+
- Relatedly, `cider-company-enable-fuzzy-completion` is now deprecated in favor of `cider-enable-flex-completion`.
53
54
- Improve support for multiple forms in the same line by replacing `beginning-of-defun` fn.
54
55
-[#3390](https://github.com/clojure-emacs/cider/issues/3390): Enhance `cider-connect` to show all nREPLs available ports, instead of only Leiningen ones.
55
56
-[#3408](https://github.com/clojure-emacs/cider/issues/3408): `cider-connect`: check `.nrepl-port`-like files for liveness, hiding them if they don't reflect an active port.
(cond ((eq action 'metadata) `(metadata (category . cider)));; defines a completion category named 'cider, used later in our `completion-category-overrides` logic.
197
198
((eq (car-safe action) 'boundaries) nil)
198
199
(t (with-current-buffer (current-buffer)
199
200
(complete-with-action action
@@ -243,6 +244,12 @@ in the buffer."
243
244
"Return CIDER completion candidates for STRING as is, unfiltered."
244
245
(cider-complete string))
245
246
247
+
;; defines a completion style named `cider' (which ideally would have been named `cider-fuzzy').
248
+
;; note that there's already a completion category named `cider' (grep for `(metadata (category . cider))` in this file),
249
+
;; which can be confusing given the identical name.
250
+
;; The `cider' completion style should be removed because the `flex' style is essentially equivalent.
251
+
;; (To be fair, `flex' was introduced in Emacs 27, 3 years in after our commit 04e428b
252
+
;; which introduced `cider-company-enable-fuzzy-completion')
246
253
(add-to-list'completion-styles-alist
247
254
'(cider
248
255
cider-company-unfiltered-candidates
@@ -252,11 +259,35 @@ in the buffer."
252
259
;; Currently CIDER completions only work for `basic`, and not `initials`, `partial-completion`, `orderless`, etc.
253
260
;; So we ensure that those other styles aren't used with CIDER, otherwise one would see bad or no completions at all.
254
261
;; This `add-to-list` call can be removed once we implement the other completion styles.
0 commit comments