mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-22 15:23:55 +08:00
Add g:airline#extensions#capslock#symbol
Add help Add linebreak and default
This commit is contained in:
parent
4e2546a209
commit
254d1a2d8d
|
@ -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