nvim: ime 切換程式更換
This commit is contained in:
parent
fb8ce6d2c7
commit
edd5970b91
@ -1,31 +1,34 @@
|
||||
return {
|
||||
{
|
||||
"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> jk <Esc>
|
||||
-- tnoremap <silent> jk <Esc>
|
||||
-- ]])
|
||||
end,
|
||||
"Freed-Wu/ime.nvim",
|
||||
},
|
||||
-- {
|
||||
-- "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> jk <Esc>
|
||||
-- -- tnoremap <silent> jk <Esc>
|
||||
-- -- ]])
|
||||
-- end,
|
||||
-- },
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user