An open API service indexing awesome lists of open source software.

https://github.com/saying121/input-switch.nvim


https://github.com/saying121/input-switch.nvim

Last synced: 3 months ago
JSON representation

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)