keaising / im-select.nvim

Switch Input Method automatically depends on Neovim's edit mode
MIT License
170 stars 25 forks source link

Switching problem in WSL #21

Closed sereinrc closed 7 months ago

sereinrc commented 8 months ago

When I use this plugin in neovim on WSL, I encounter a issue.

Could you give me some advice to avoid this issue?

my config:

 -- im-select
  {
    "keaising/im-select.nvim",
    lazy = false,
    config = function()
      require("im_select").setup {
        default_im_select = "1033",
        default_command = "im-select.exe",
        set_default_events = { "VimEnter", "FocusGained", "InsertLeave", "CmdlineLeave" },
        set_previous_events = { "InsertEnter" },
        keep_quiet_on_no_binary = false,
        async_switch_im = true,
      }
    end,
  },

I use Nvchad in neovim. Does this issue relate to the Nvchad framework?

keaising commented 8 months ago

Do you install im-select.exe in your PC?

When you run im-select.exe in terminal, what output look like?

sereinrc commented 8 months ago

Sure,I install im-select.exe in my pc

when I run im-select.exe in WSL,in output 1033 or 2052

keaising commented 8 months ago

Have a try with option

async_switch_im = false

Maybe you meet the problem described in README

keaising commented 7 months ago

@sereinrc Could you please have try with https://github.com/keaising/im-select.nvim/pull/22 ?

sereinrc commented 7 months ago

Recently, my system had some issues, and I couldn't use my preferred Linux distribution on WSL. Therefore, I gave up on the idea of switching to Chinese in Neovim.Thank you for your patience.

keaising commented 7 months ago

It's OK, I will close this issue if https://github.com/keaising/im-select.nvim/pull/22 works fine.