diff --git a/autoload/airline/extensions/capslock.vim b/autoload/airline/extensions/capslock.vim index fe73d8df..81d6df02 100644 --- a/autoload/airline/extensions/capslock.vim +++ b/autoload/airline/extensions/capslock.vim @@ -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) diff --git a/doc/airline.txt b/doc/airline.txt index dbf5e28a..fc8c512d 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -568,6 +568,9 @@ 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