feat(chinese): add +childframe for pyim candidates
Close: #6482 Co-authored-by: merrickluo <merrickluo@users.noreply.github.com>
This commit is contained in:
parent
4594aaa7cd
commit
5d69d48943
3 changed files with 8 additions and 0 deletions
|
@ -13,6 +13,8 @@ methods: Pinyin and Wubi.
|
||||||
** Module flags
|
** Module flags
|
||||||
- +rime ::
|
- +rime ::
|
||||||
Enables the [[https://rime.im/][rime]] backend for pyim.
|
Enables the [[https://rime.im/][rime]] backend for pyim.
|
||||||
|
- +childframe ::
|
||||||
|
Display pyim candidates in a [[https://www.gnu.org/software/emacs/manual/html_node/elisp/Child-Frames.html][child frame]] rather than overlay or tooltip.
|
||||||
|
|
||||||
** Packages
|
** Packages
|
||||||
- [[doom-package:ace-pinyin]]
|
- [[doom-package:ace-pinyin]]
|
||||||
|
@ -21,6 +23,7 @@ methods: Pinyin and Wubi.
|
||||||
- [[doom-package:fcitx]]
|
- [[doom-package:fcitx]]
|
||||||
- [[doom-package:liberime]] if [[doom-module:+rime]]
|
- [[doom-package:liberime]] if [[doom-module:+rime]]
|
||||||
- [[doom-package:pangu-spacing]]
|
- [[doom-package:pangu-spacing]]
|
||||||
|
- [[doom-package:posframe]] if [[doom-module:+childframe]]
|
||||||
- [[doom-package:pyim]] unless [[doom-module:+wubi]]
|
- [[doom-package:pyim]] unless [[doom-module:+wubi]]
|
||||||
|
|
||||||
** Hacks
|
** Hacks
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
current-input-method)
|
current-input-method)
|
||||||
(add-to-list 'evil-escape-inhibit-functions #'+chinese--input-method-p))
|
(add-to-list 'evil-escape-inhibit-functions #'+chinese--input-method-p))
|
||||||
|
|
||||||
|
(when (modulep! +childframe)
|
||||||
|
(setq pyim-page-tooltip 'posframe))
|
||||||
|
|
||||||
;; allow vertico/selectrum search with pinyin
|
;; allow vertico/selectrum search with pinyin
|
||||||
(cond ((modulep! :completion vertico)
|
(cond ((modulep! :completion vertico)
|
||||||
(advice-add #'orderless-regexp
|
(advice-add #'orderless-regexp
|
||||||
|
|
|
@ -7,5 +7,7 @@
|
||||||
(package! pangu-spacing :pin "2303013e5cd7852136f1429162fea0e1c8cb0221")
|
(package! pangu-spacing :pin "2303013e5cd7852136f1429162fea0e1c8cb0221")
|
||||||
(when (modulep! +rime)
|
(when (modulep! +rime)
|
||||||
(package! liberime :pin "8291e22cd0990a99cb2f88ca67a9065a157f39af"))
|
(package! liberime :pin "8291e22cd0990a99cb2f88ca67a9065a157f39af"))
|
||||||
|
(when (modulep! +childframe)
|
||||||
|
(package! posframe :pin "0d23bc5f7cfac00277d83ae7ba52c48685bcbc68"))
|
||||||
(when (modulep! :editor evil +everywhere)
|
(when (modulep! :editor evil +everywhere)
|
||||||
(package! evil-pinyin :pin "3e9e501ded86f88e01a4edec5d526ab0fab879d7"))
|
(package! evil-pinyin :pin "3e9e501ded86f88e01a4edec5d526ab0fab879d7"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue