修复imchange

This commit is contained in:
QQ 2023-01-28 18:50:00 +08:00
parent 494c7d7a55
commit 63d15c0110

View File

@ -3,14 +3,13 @@ local G, im = require("G"), "keyboard-us"
function InsertLeave()
local t = io.popen("fcitx5-remote -n")
im = t:read()
G.cmd(":silent !fcitx5-remote -c,cr")
G.cmd(":silent !fcitx5-remote -c")
end
function InsertEnter()
if im == 'pinyin'
then
print(im)
G.cmd("!fcitx5-remote -s pinyin<cr>")
G.cmd(":silent !fcitx5-remote -s pinyin")
end
end