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
|
endif
|
||||||
|
|
||||||
function! airline#extensions#capslock#status()
|
function! airline#extensions#capslock#status()
|
||||||
return tolower(CapsLockStatusline()) == '[caps]' ? 'CAPS' : ''
|
return tolower(CapsLockStatusline()) ==# '[caps]' ? get(g:, 'airline#extensions#capslock#symbol', 'CAPS') : ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#capslock#init(ext)
|
function! airline#extensions#capslock#init(ext)
|
||||||
|
|
|
@ -568,6 +568,9 @@ vim-capslock <https://github.com/tpope/vim-capslock>
|
||||||
* enable/disable vim-capslock integration >
|
* enable/disable vim-capslock integration >
|
||||||
let g:airline#extensions#capslock#enabled = 1
|
let g:airline#extensions#capslock#enabled = 1
|
||||||
|
|
||||||
|
* change vim-capslock symbol >
|
||||||
|
let g:airline#extensions#capslock#symbol = 'CAPS' (default)
|
||||||
|
|
||||||
------------------------------------- *airline-coc*
|
------------------------------------- *airline-coc*
|
||||||
coc <https://github.com/neoclide/coc.nvim>
|
coc <https://github.com/neoclide/coc.nvim>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue