add a function for current IM name

for showing info e.g. on the status line. closes #32.
This commit is contained in:
lilydjwg 2022-11-15 16:19:00 +08:00
parent 7f06ccfa8a
commit d79d816e24
3 changed files with 17 additions and 0 deletions

View file

@ -44,6 +44,9 @@ elseif has('python3')
function Fcitx2zh()
py3 fcitx2zh()
endfunction
function FcitxCurrentIM()
return py3eval('fcitx_current_im()')
endfunction
let g:loaded_fcitx = 1
endif