mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix(common-lisp): sly completion when there is no matching
Using `sly-simple-completion` when using vertico or helm (without `+fuzzy`) causes sly to suggest all the system's symbols whenever there is no matches. See https://github.com/joaotavora/sly/issues/535. As also reported here https://www.reddit.com/r/DoomEmacs/comments/uox6b2/commonlisp_completion_not_machting_input/ and here https://www.reddit.com/r/emacs/comments/t8bguf/how_do_i_prevent_companymode_from_giving_a/
This commit is contained in:
parent
b66ad77031
commit
01f560ab86
1 changed files with 10 additions and 3 deletions
|
|
@ -40,9 +40,16 @@
|
|||
sly-kill-without-query-p t
|
||||
sly-net-coding-system 'utf-8-unix
|
||||
;; Doom defaults to non-fuzzy search, because it is faster and more
|
||||
;; precise (but requires more keystrokes). Change this to
|
||||
;; `sly-flex-completions' for fuzzy completion
|
||||
sly-complete-symbol-function 'sly-simple-completions)
|
||||
;; precise (but requires more keystrokes), since it causes showing all
|
||||
;; symbols in the cases of using vertico/helm (without +fuzzy) (see
|
||||
;; https://github.com/joaotavora/sly/issues/535) for :completion, it
|
||||
;; changes it to `sly-flex-completions', which is a fuzzy completion.
|
||||
sly-complete-symbol-function (if (or (modulep! :completion vertico)
|
||||
(and (modulep! :completion helm)
|
||||
(not (modulep! :completion helm +fuzzy))))
|
||||
'sly-flex-completions
|
||||
'sly-simple-completions))
|
||||
|
||||
|
||||
(set-popup-rules!
|
||||
'(("^\\*sly-mrepl" :vslot 2 :size 0.3 :quit nil :ttl nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue