parent
02894b6ef4
commit
d25c049e61
|
@ -17,9 +17,13 @@ function! airline#extensions#xkblayout#status()
|
||||||
let keyboard_layout = FcitxCurrentIM()
|
let keyboard_layout = FcitxCurrentIM()
|
||||||
elseif has('nvim')
|
elseif has('nvim')
|
||||||
try
|
try
|
||||||
let keyboard_layout = luaeval('require"fcitx5-ui".displayCurrentIM()')
|
let keyboard_layout = luaeval('require"ime".current()')
|
||||||
catch /.*/
|
catch /.*/
|
||||||
let keyboard_layout = ''
|
try
|
||||||
|
let keyboard_layout = luaeval('require"fcitx5-ui".displayCurrentIM()')
|
||||||
|
catch /.*/
|
||||||
|
let keyboard_layout = ''
|
||||||
|
endtry
|
||||||
endtry
|
endtry
|
||||||
else
|
else
|
||||||
let keyboard_layout = ''
|
let keyboard_layout = ''
|
||||||
|
|
|
@ -1775,7 +1775,11 @@ details on how to use it, see e.g. <https://github.com/ierton/xkb-switch>
|
||||||
let g:XkbSwitchLib = '/usr/local/lib/libInputSourceSwitcher.dylib'
|
let g:XkbSwitchLib = '/usr/local/lib/libInputSourceSwitcher.dylib'
|
||||||
<
|
<
|
||||||
Linux with fcitx (Install https://github.com/fcitx/fcitx5):
|
Linux with fcitx (Install https://github.com/fcitx/fcitx5):
|
||||||
Install https://github.com/lilydjwg/fcitx.vim) to get `FcitxCurrentIM()`
|
Install https://github.com/lilydjwg/fcitx.vim to get `FcitxCurrentIM()`
|
||||||
|
or https://github.com/black-desk/fcitx5-ui.nvim to get
|
||||||
|
`luaeval('require"fcitx5-ui".displayCurrentIM()')`
|
||||||
|
or https://github.com/Freed-Wu/ime.nvim to get
|
||||||
|
`luaeval('require"ime".current()')`
|
||||||
|
|
||||||
------------------------------------- *airline-xtabline*
|
------------------------------------- *airline-xtabline*
|
||||||
xtabline <https://github.com/mg979/vim-xtabline>
|
xtabline <https://github.com/mg979/vim-xtabline>
|
||||||
|
|
Loading…
Reference in New Issue