diff --git a/autoload/lightline.vim b/autoload/lightline.vim index be3395d..c9129ed 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -2,7 +2,7 @@ " Filename: autoload/lightline.vim " Author: itchyny " License: MIT License -" Last Change: 2016/05/07 22:18:16. +" Last Change: 2016/05/08 13:50:23. " ============================================================================= let s:save_cpo = &cpo @@ -102,14 +102,13 @@ let s:_lightline = { \ 'component': { \ 'mode': '%{lightline#mode()}', \ 'absolutepath': '%F', 'relativepath': '%f', 'filename': '%t', 'modified': '%M', 'bufnum': '%n', - \ 'spell': '%{&spell?&spelllang:"no spell"}', \ 'paste': '%{&paste?"PASTE":""}', 'readonly': '%R', 'charvalue': '%b', 'charvaluehex': '%B', - \ 'fileencoding': '%{&fenc!=#""?&fenc:&enc}', 'fileformat': '%{&ff}', + \ 'spell': '%{&spell?&spelllang:""}', 'fileencoding': '%{&fenc!=#""?&fenc:&enc}', 'fileformat': '%{&ff}', \ 'filetype': '%{&ft!=#""?&ft:"no ft"}', 'percent': '%3p%%', 'percentwin': '%P', \ 'lineinfo': '%3l:%-2v', 'line': '%l', 'column': '%c', 'close': '%999X X ' \ }, \ 'component_visible_condition': { - \ 'modified': '&modified||!&modifiable', 'readonly': '&readonly', 'paste': '&paste' + \ 'modified': '&modified||!&modifiable', 'readonly': '&readonly', 'paste': '&paste', 'spell': '&spell' \ }, \ 'component_function': {}, \ 'component_expand': { diff --git a/doc/lightline.txt b/doc/lightline.txt index 28947bf..45eec4e 100644 --- a/doc/lightline.txt +++ b/doc/lightline.txt @@ -4,7 +4,7 @@ Version: 0.0 Author: itchyny (https://github.com/itchyny) License: MIT License Repository: https://github.com/itchyny/lightline.vim -Last Change: 2016/04/23 13:49:14. +Last Change: 2016/05/08 13:56:19. CONTENTS *lightline-contents* @@ -109,7 +109,7 @@ OPTIONS *lightline-option* \ 'filetype': '%{&ft!=#""?&ft:"no ft"}', \ 'percent': '%3p%%', \ 'percentwin': '%P', - \ 'spell': '%{&spell?&spelllang:"no spell"}', + \ 'spell': '%{&spell?&spelllang:""}', \ 'lineinfo': '%3l:%-2v', \ 'line': '%l', \ 'column': '%c' @@ -124,7 +124,8 @@ OPTIONS *lightline-option* let g:lightline.component_visible_condition = { \ 'modified': '&modified||!&modifiable', \ 'readonly': '&readonly', - \ 'paste': '&paste' } + \ 'paste': '&paste', + \ 'spell': '&spell' } < Users are recommended to set this option together with the component itself.