use 'winnr' component name instead of 'windownb'

This commit is contained in:
antoinemadec
2017-09-17 11:55:57 -07:00
parent fe7ef5fb33
commit 9d1fee4887
2 changed files with 2 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ let s:_lightline = {
\ 'paste': '%{&paste?"PASTE":""}', 'readonly': '%R', 'charvalue': '%b', 'charvaluehex': '%B',
\ '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 ', 'windownb': '%{winnr()}'
\ 'lineinfo': '%3l:%-2v', 'line': '%l', 'column': '%c', 'close': '%999X X ', 'winnr': '%{winnr()}'
\ },
\ 'component_visible_condition': {
\ 'modified': '&modified||!&modifiable', 'readonly': '&readonly', 'paste': '&paste', 'spell': '&spell'

View File

@@ -111,7 +111,7 @@ OPTIONS *lightline-option*
\ 'line': '%l',
\ 'column': '%c',
\ 'close': '%999X X ',
\ 'windownb': '%{winnr()}' }
\ 'winnr': '%{winnr()}' }
<
g:lightline.component_visible_condition
*g:lightline.component_visible_condition*