feat(chinese): search anything with pinyin
- Advise orderless to use pyim-cregexp-build when using vertico - Add it to ivy-re-builders-alist when using ivy Close: #6482 Co-authored-by: merrickluo <merrickluo@users.noreply.github.com>
This commit is contained in:
parent
b2cdacf457
commit
051c31109f
1 changed files with 7 additions and 1 deletions
|
@ -6,7 +6,13 @@
|
||||||
(setq pyim-dcache-directory (concat doom-cache-dir "pyim/"))
|
(setq pyim-dcache-directory (concat doom-cache-dir "pyim/"))
|
||||||
:config
|
:config
|
||||||
(setq pyim-page-tooltip t
|
(setq pyim-page-tooltip t
|
||||||
default-input-method "pyim"))
|
default-input-method "pyim")
|
||||||
|
|
||||||
|
;; allow vertico/selectrum search with pinyin
|
||||||
|
(cond ((modulep! :completion vertico)
|
||||||
|
(advice-add #'orderless-regexp :filter-return #'pyim-cregexp-build-regexp-string))
|
||||||
|
((modulep! :completion ivy)
|
||||||
|
(setq ivy-re-builders-alist '((t . pyim-cregexp-ivy))))))
|
||||||
|
|
||||||
|
|
||||||
(use-package! liberime
|
(use-package! liberime
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue