Merge pull request #2090 from Freed-Wu/master

Add g:airline#extensions#capslock#sign
This commit is contained in:
Christian Brabandt 2020-03-20 14:13:56 +01:00 committed by GitHub
commit 119477060d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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>