mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-01-31 23:42:59 +08:00
Merge pull request #2090 from Freed-Wu/master
Add g:airline#extensions#capslock#sign
This commit is contained in:
commit
119477060d
|
@ -9,7 +9,7 @@ if !exists('*CapsLockStatusline')
|
|||
endif
|
||||
|
||||
function! airline#extensions#capslock#status()
|
||||
return tolower(CapsLockStatusline()) == '[caps]' ? 'CAPS' : ''
|
||||
return tolower(CapsLockStatusline()) ==# '[caps]' ? get(g:, 'airline#extensions#capslock#symbol', 'CAPS') : ''
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#capslock#init(ext)
|
||||
|
|
|
@ -568,6 +568,9 @@ vim-capslock <https://github.com/tpope/vim-capslock>
|
|||
* enable/disable vim-capslock integration >
|
||||
let g:airline#extensions#capslock#enabled = 1
|
||||
|
||||
* change vim-capslock symbol >
|
||||
let g:airline#extensions#capslock#symbol = 'CAPS' (default)
|
||||
|
||||
------------------------------------- *airline-coc*
|
||||
coc <https://github.com/neoclide/coc.nvim>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user