Closed hieulw closed 1 year ago
Thanks for your PR!
I prefer vim.fn.jobstart
, it is more clear for reader that we use async function.
Could you please change vim.fn.system
to vim.fn.jobstart
in https://github.com/hieulw/im-select.nvim/blob/fix/uv-closing-failed/lua/im_select.lua#L112-L126 ?
I just updated my commits. I use vim.fn.jobstart
with { detach = true }
option so the job will not be killed when Nvim exits.
I'm noticing we use
vim.fn.system
to change input method. This function of neovim is blocked (synchronous) since it wait to get outputs from command. So whenever I exit vim:q
, I get error like this:Quick fix is to replace
vim.fn.system
tovim.fn.jobstart
since we don't actually needfcitx5-remote -s keyboard-us
output. Or just wrap whole function withvim.schedule_wrap
:P