crispgm / nvim-auto-ime

Automatically switch Input Method (only on macOS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nvim-auto-ime

Automatically switch Input Method (IME). It is only available on macOS.

Features

  • Switch to English IME after InsertLeave
  • User commands to control IME

Installation

  1. Install macism:
    $ brew tap laishulu/macism
    $ brew install macism
  2. Install nvim-auto-ime with your favorite package manager, e.g. Lazy
    {
        'crispgm/nvim-auto-ime',
        config = function()
            require('auto-ime').setup({
                ime_source = 'com.apple.inputmethod.SCIM.ITABC',
            })
        end
    }

Configuration

Default configuration:

{
    ime_default = 'com.apple.keylayout.ABC',
    ime_source = '', -- must be specified
}

You may install minoki/InputSourceSelector and list all enabled sources:

InputSourceSelector list-enabled

License

Copyright (c) David Zhang, 2023.

About

Automatically switch Input Method (only on macOS)

License:MIT License


Languages

Language:Lua 100.0%