更新im插件

This commit is contained in:
QQ 2023-01-28 18:15:05 +08:00
parent cb2cef849b
commit 494c7d7a55

View File

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