我在使用ivy的时候,rime输入法可以正确显示出候选词,而在使用helm的时候,rime的中文候选词就没有办法显示,两个的区别如图所示,需要在helm加入什么特殊配置吗?
其实这个支持不是做给 ivy 的,而是做给minibuffer 的,因为没用过 helm 所以也不是很清楚是什么情况。
我试着对rime.el进行了修订,
diff --git a/elpa/28.0/develop/rime-20211210.1806/rime.el b/home/iam070/rime.el
index 062342b23..044ab97ac 100644
--- a/elpa/28.0/develop/rime-20211210.1806/rime.el
+++ b/home/iam070/rime.el
@@ -574,13 +574,16 @@ Currently just deactivate input method."
(defun rime--show-content (content)
"Display CONTENT as candidate."
- (cl-case rime-show-candidate
+ (if (minibufferp)
+ (when rime-show-candidate
+ (rime--minibuffer-message content))
+ (cl-case rime-show-candidate
(minibuffer (rime--minibuffer-display-content content))
(message (rime--message-display-content content))
(popup (rime--popup-display-content content))
(posframe (rime--posframe-display-content content))
(sidewindow (rime--sidewindow-display-content content))
- (t (progn))))
+ (t (progn)))))
(defun rime--candidate-prefix-char ()
"Character used to separate preedit and candidates."
效果稍微好了一些 但是HELM这里还是有些奇怪