Merge pull request #247 from antoinemadec/master

add 'winnr' component
This commit is contained in:
itchyny
2017-09-18 08:06:35 +09:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ let s:_lightline = {
\ 'paste': '%{&paste?"PASTE":""}', 'readonly': '%R', 'charvalue': '%b', 'charvaluehex': '%B', \ 'paste': '%{&paste?"PASTE":""}', 'readonly': '%R', 'charvalue': '%b', 'charvaluehex': '%B',
\ 'spell': '%{&spell?&spelllang:""}', 'fileencoding': '%{&fenc!=#""?&fenc:&enc}', 'fileformat': '%{&ff}', \ 'spell': '%{&spell?&spelllang:""}', 'fileencoding': '%{&fenc!=#""?&fenc:&enc}', 'fileformat': '%{&ff}',
\ 'filetype': '%{&ft!=#""?&ft:"no ft"}', 'percent': '%3p%%', 'percentwin': '%P', \ 'filetype': '%{&ft!=#""?&ft:"no ft"}', 'percent': '%3p%%', 'percentwin': '%P',
\ 'lineinfo': '%3l:%-2v', 'line': '%l', 'column': '%c', 'close': '%999X X ' \ 'lineinfo': '%3l:%-2v', 'line': '%l', 'column': '%c', 'close': '%999X X ', 'winnr': '%{winnr()}'
\ }, \ },
\ 'component_visible_condition': { \ 'component_visible_condition': {
\ 'modified': '&modified||!&modifiable', 'readonly': '&readonly', 'paste': '&paste', 'spell': '&spell' \ 'modified': '&modified||!&modifiable', 'readonly': '&readonly', 'paste': '&paste', 'spell': '&spell'

View File

@@ -109,8 +109,9 @@ OPTIONS *lightline-option*
\ 'spell': '%{&spell?&spelllang:""}', \ 'spell': '%{&spell?&spelllang:""}',
\ 'lineinfo': '%3l:%-2v', \ 'lineinfo': '%3l:%-2v',
\ 'line': '%l', \ 'line': '%l',
\ 'column': '%c' \ 'column': '%c',
\ 'close': '%999X X ' } \ 'close': '%999X X ',
\ 'winnr': '%{winnr()}' }
< <
g:lightline.component_visible_condition g:lightline.component_visible_condition
*g:lightline.component_visible_condition* *g:lightline.component_visible_condition*