https://github.com/saying121/input-switch.nvim
https://github.com/saying121/input-switch.nvim
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/saying121/input-switch.nvim
- Owner: saying121
- License: mit
- Created: 2024-06-26T01:03:53.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-29T09:24:55.000Z (12 months ago)
- Last Synced: 2025-01-24T19:33:28.252Z (5 months ago)
- Language: Lua
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduct
- When cursor under is comment switch input method.
- Normal mode switch to en.# Config
config with lazy.nvim
```lua
return {
"saying121/input-switch.nvim",
event = { "InsertEnter", "CmdlineEnter" },
config = function()
require("input-switch").setup({
switch_to_en = "fcitx5-remote -c", -- cmd for switch to en
switch_no_en = "fcitx5-remote -o", -- cmd for switch to no en
comment = true, -- enable comment switch?
})
end,
}
```## Alternative
- [fcitx.vim](https://github.com/lilydjwg/fcitx.vim)
- [vim-barbaric](https://github.com/rlue/vim-barbaric)
- [https://github.com/h-hg/fcitx.nvim](https://github.com/h-hg/fcitx.nvim)