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

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

No files matched your search

+1 -1
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