laishulu / vim-macos-ime

Switch input source automatically in vim for macos.
13 stars 3 forks source link

Both the variable macosime_normal_ime and macosime_cjk_ime should be set correctly in order for this plugin to work #4

Open jdhao opened 1 year ago

jdhao commented 1 year ago

Thanks for this plugins, works good, but with minor issues in the documentation. I checked the code, it assumes the default normal IME is com.apple.keylayout.US, which is not always true. So the user should set it correctly in their case.

Here is what works for me in Neovim with Packer as the plugin manager:

      use { "laishulu/vim-macos-ime", config = function()
        vim.g.macosime_normal_ime = 'com.apple.keylayout.ABC'
        vim.g.macosime_cjk_ime = 'com.apple.inputmethod.SCIM.ITABC'
      end}