coc-rime
v0.1.5
Published
Rime input method integration of coc.nvim
Downloads
179
Readme
coc-rime
Rime input method integration of coc.nvim
This extension is created by create-coc-extension
Dependencies
# Ubuntu
sudo apt-get -y install pkg-config librime-dev librime1
sudo apt-mark auto librime-dev pkg-config
# ArchLinux
sudo pacman -S pkg-config librime
# Android Termux
apt-get -y install pkg-config librime
# Nix
# without any extra operation
# homebrew
brew tap tonyfettes/homebrew-rime
brew install pkg-config librime
# Windows msys2
pacboy -S --noconfirm pkg-config librime gcc
Install
" command line
CocInstall coc-rime
" or add the following code to your vimrc
let g:coc_global_extensions = ['coc-rime', 'other coc-plugins']
Commands
rime.source.enable
: enable this source temporarily.rime.source.disable
: disable this source temporarily.rime.source.toggle
: temporarily toggle the status of the source.rime.enable
: enable this IME temporarily.rime.disable
: disable this IME temporarily.rime.toggle
: toggle this IME temporarily.
Lists
You could use CocList
to switch between schema.
:CocList rime_schema
User Configuration
rime.enabled
: Whether to enable this source.rime.priority
: The priority of this completion source.rime.schemaId
: TheschemaId
selected whencoc-rime
start. You could get it fromrime_schema
list.rime.priority
: Priority of Rime completion sourcerime.traits.shared_data_dir
: Path(s) where rime data storesrime.traits.user_data_dir
: Path(s) where rime configuration storesrime.traits.*
: More rime traitsrime.ui.*
: The symbols used for IME UI
Limitations
- It will break all
imap <Buffer>
created by other plugins, such as vim-peekaboo's<C-R>
.
License
MIT
Related Projects
IM for vim
Pure vim
- VimIM: Stop maintenance
ibus
fcitx5
rime
本项目希望为不可能使用输入法的环境中提供必要的中文支持:
- 文本终端。例如在构建 Linux 时添加 cjktty-patches 可以在文本终端显示中文,但在不使用 fbterm 时缺乏输入中文的方法。
- Android 。受限于 Android 权限机制,不可能在
termux 中获取输入法 APP
的状态以实现:
- 退出插入模式时恢复英文输入模式
- 进入插入模式时恢复上一次退出插入模式时的中、英文输入模式
Rime frontends
See here.