aboutsummaryrefslogtreecommitdiff
path: root/core/plugins.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-02-26 00:09:51 +0800
committerjdhao <jdhao@hotmail.com>2021-02-26 00:09:51 +0800
commit6f23dea8f3125b269eb9afab1e09ec0f9b2e923d (patch)
tree43cba0b79d1c3e3b0c9a73a668b26f6a515f4ae1 /core/plugins.vim
parent832fb4c795ea16d9210580453fa61829004d9911 (diff)
update airline settings for vim-xkbswitch
Diffstat (limited to 'core/plugins.vim')
-rw-r--r--core/plugins.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/plugins.vim b/core/plugins.vim
index b07318a..210b1e0 100644
--- a/core/plugins.vim
+++ b/core/plugins.vim
@@ -898,6 +898,12 @@ let g:airline#extensions#hunks#non_zero_only = 1
" Speed up airline
let g:airline_highlighting_cache = 1
+" The key in the following shortcode are the layout when we use a specific
+" input method mode. On my macOS, 0 means that we are trying to input Chinese,
+" and 1 means we are using English mode.
+" See also https://github.com/vim-airline/vim-airline/blob/master/autoload/airline/extensions/xkblayout.vim#L11
+let g:airline#extensions#xkblayout#short_codes = {'0': 'CN', '1': 'US'}
+
""""""""""""""""""""""""""""vim-startify settings""""""""""""""""""""""""""""
" Do not change working directory when opening files.
let g:startify_change_to_dir = 0