refactor(settings): Use prescient together with ivy
Ivy's regex-based fuzzy matching can occasionally be slow, which was getting on my nerves. This switches the completion engine to prescient[1] which promises to be faster. Experimental testing in large files like the `configuration.nix` man page looks promissing. [1]: https://github.com/raxod502/prescient.el
This commit is contained in:
parent
ebc1dd1a18
commit
a6a0e28e11
1 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
|||
(require 'prescient)
|
||||
(require 'ivy-prescient)
|
||||
(require 'uniquify)
|
||||
(require 'password-store)
|
||||
(require 'ivy-pass)
|
||||
|
@ -9,9 +11,9 @@
|
|||
(setq ivy-use-virtual-buffers t)
|
||||
(setq enable-recursive-minibuffers t)
|
||||
|
||||
;; Enable fuzzy matching in ivy (requires flx installed for sane
|
||||
;; ordering)
|
||||
(setq ivy-re-builders-alist '((t . ivy--regex-fuzzy)))
|
||||
;; Enable support for prescient in ivy
|
||||
(ivy-prescient-mode)
|
||||
(prescient-persist-mode)
|
||||
|
||||
;; Move files to trash when deleting
|
||||
(setq delete-by-moving-to-trash t)
|
||||
|
|
Loading…
Reference in a new issue