Skip to content

OliverChao/autoime.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

autoime.nvim is one pluin to free you hand. It can auto-switch bwteen default ime and the previous one. This is useful for some non-latin languages like Chinese. Sometimes we need write non-latin charactors in insert mode and want ime auto-changes to latin while entering the normal mode. This is the solution used im-select.

Screen.Recording.2023-12-08.at.20.51.12.mp4

Notice

This plugin is only test on MacOS. And it is optimised for Mac for my hobby.

In theory, it applys to any platform which im-select supports(MaxOS, Windows). If you use Linux, use ime-select.nvim.

If you have any problems, please start an issue.

Requirements

  1. im-select
  2. plenary.nvim (optinal, only use async funtions)

Install

Choose your favourate plugin manager.

The fowllowing configuration is used lazy:

{
    "OliverChao/autoime.nvim",
    event = "InsertEnter",
    opts = {
      im_select_path = "<the ime-select path>",
      autoime_default = "com.apple.keylayout.ABC", -- choose the default ime
    },
}

If im-select is execuable directly, you needn't set im_select_path.

License

The MIT License (MIT)

Related work

  1. smartim
  2. vim-barbaric
  3. im-select.nvim

About

ime-auto-change smartly. written in lua.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages