Merge pull request #2600 from Freed-Wu/fcitx

Add support for fcitx.vim
This commit is contained in:
Christian Brabandt
2022-11-17 16:18:44 +01:00
committed by GitHub
3 changed files with 19 additions and 7 deletions

View File

@@ -429,7 +429,7 @@ function! airline#extensions#load()
call add(s:loaded_ext, 'grepper')
endif
if (get(g:, 'airline#extensions#xkblayout#enabled', 1) && exists('g:XkbSwitchLib'))
if get(g:, 'airline#extensions#xkblayout#enabled', 1) && (exists('g:XkbSwitchLib') || exists('*FcitxCurrentIM'))
call airline#extensions#xkblayout#init(s:ext)
call add(s:loaded_ext, 'xkblayout')
endif