From 1237c966c310aec1bc0b1f20a1503b1ec4a29055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Delattre?= Date: Sat, 21 Jun 2014 02:13:19 +0200 Subject: [PATCH 1/2] Add spell component --- autoload/lightline.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index 8b464a1..10e9f50 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -98,6 +98,7 @@ function! lightline#init() call extend(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': '%{strlen(&fenc)?&fenc:&enc}', 'fileformat': '%{&fileformat}', \ 'filetype': '%{strlen(&filetype)?&filetype:"no ft"}', 'percent': '%3p%%', 'percentwin': '%P', From e67c4d6b9ef593cad4770213d0811641bc85a503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Delattre?= Date: Sat, 21 Jun 2014 09:25:23 +0200 Subject: [PATCH 2/2] Update doc for spell component --- doc/lightline.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/lightline.txt b/doc/lightline.txt index a3b22b0..3729a2a 100644 --- a/doc/lightline.txt +++ b/doc/lightline.txt @@ -109,6 +109,7 @@ OPTIONS *lightline-option* \ 'filetype': '%{strlen(&filetype)?&filetype:"no ft"}', \ 'percent': '%3p%%', \ 'percentwin': '%P', + \ 'spell': '%{&spell?&spelllang:"no spell"}', \ 'lineinfo': '%3l:%-2v', \ 'line': '%l', \ 'column': '%c'