xkblayout: support fcitx5-ui.nvim (#2680)

https://github.com/black-desk/fcitx5-ui.nvim
This commit is contained in:
wzy
2024-06-16 22:57:43 +08:00
committed by GitHub
parent 16c1638f93
commit 02894b6ef4
2 changed files with 15 additions and 9 deletions

View File

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