Skip to content

ds1sqe/InputMethodAutoChanger.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 

Repository files navigation

InputMethodAutoChanger.nvim

Automatically Change Input Method in neovim

If you use a Non-English Language while in Input Mode, The input language is automatically changed to English when you leave Input Mode

And When you return to Input Mode, the Input Langauge revert to the Original Non-English Language

You can use this plugin on your main config as below,

To import my plugin with vimplug or etc,

-- packer-like
use 'ds1sqe/InputMethodAutoChanger.nvim' 
-- lazy-like
{
    "ds1sqe/InputMethodAutoChanger.nvim",
    event = "BufReadPost",
    config = function()
      require("imac").setup(
        {
          debug = true,
        }
      )
    end,
}

And setup with,

require("imac").setup(
  {
     debug = false,
  }
)

Default configuration

{
  macos = { -- Config for Macos
    IME_ENG = "com.apple.keylayout.ABC",
    IME_Target = "com.apple.inputmethod.Korean.2SetKorean",
  },
  linux = {
    ibus = { -- Config for Linux-Ibus
      IME_ENG = "xkb:us::eng",
      IME_Target = "hangul",
    },
    fcitx = { -- Config for Linux-fcitx5
      IME_ENG = "keyboard-us",
      IME_Target = "hangul",
    },
  },
  wsl = { -- Config for window wsl-linux
    IME_ENG = "1033",
    IME_Target = "1042",
  },
  windows = { -- Config for windows
    IME_ENG = "1033",
    IME_Target = "1042",
  },
  debug = false,
  imSelectPath = "",
},

On windows or wsl, you have to add english locale (1033) goto Settings>Time/Locale/Langauge>Langauge and Region>Add Locale

Video Label

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages