nvim: ime 切換程式更換

This commit is contained in:
Yuan Chiu 2025-05-06 16:50:30 +08:00
parent fb8ce6d2c7
commit edd5970b91

View File

@ -1,31 +1,34 @@
return { return {
{ {
"pysan3/fcitx5.nvim", "Freed-Wu/ime.nvim",
cond = function()
return vim.fn.executable("fcitx5-remote") == 1
end,
event = { "ModeChanged" }, -- 在模式改變時載入插件
config = function()
require("fcitx5").setup() -- 初始化插件
-- 以下是手動指定規則
-- local en = "keyboard-us"
-- local tw = "chewing"
-- require("fcitx5").setup({
-- imname = {
-- norm = en,
-- ins = tw,
-- cmd = en,
-- },
-- remember_prior = false,
-- })
-- -- If you are using `jk` to escape, map 全角のjk.
-- vim.cmd([[
-- inoremap <silent> <Esc>
-- tnoremap <silent> <Esc>
-- ]])
end,
}, },
-- {
-- "pysan3/fcitx5.nvim",
-- cond = function()
-- return vim.fn.executable("fcitx5-remote") == 1
-- end,
-- event = { "ModeChanged" }, -- 在模式改變時載入插件
-- config = function()
-- require("fcitx5").setup() -- 初始化插件
--
-- -- 以下是手動指定規則
-- -- local en = "keyboard-us"
-- -- local tw = "chewing"
--
-- -- require("fcitx5").setup({
-- -- imname = {
-- -- norm = en,
-- -- ins = tw,
-- -- cmd = en,
-- -- },
-- -- remember_prior = false,
-- -- })
--
-- -- -- If you are using `jk` to escape, map 全角のjk.
-- -- vim.cmd([[
-- -- inoremap <silent> <Esc>
-- -- tnoremap <silent> <Esc>
-- -- ]])
-- end,
-- },
} }