{"action":"opened","issue":{"url":"https://api.github.com/repos/itchyny/lightline.vim/issues/163","repository_url":"https://api.github.com/repos/itchyny/lightline.vim","labels_url":"https://api.github.com/repos/itchyny/lightline.vim/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/itchyny/lightline.vim/issues/163/comments","events_url":"https://api.github.com/repos/itchyny/lightline.vim/issues/163/events","html_url":"https://github.com/itchyny/lightline.vim/issues/163","id":153693661,"number":163,"title":"Status line color is not displayed in nomal mode...","user":{"login":"ytac8","id":11435694,"avatar_url":"https://avatars.githubusercontent.com/u/11435694?v=3","gravatar_id":"","url":"https://api.github.com/users/ytac8","html_url":"https://github.com/ytac8","followers_url":"https://api.github.com/users/ytac8/followers","following_url":"https://api.github.com/users/ytac8/following{/other_user}","gists_url":"https://api.github.com/users/ytac8/gists{/gist_id}","starred_url":"https://api.github.com/users/ytac8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytac8/subscriptions","organizations_url":"https://api.github.com/users/ytac8/orgs","repos_url":"https://api.github.com/users/ytac8/repos","events_url":"https://api.github.com/users/ytac8/events{/privacy}","received_events_url":"https://api.github.com/users/ytac8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-09T02:39:26Z","updated_at":"2016-05-09T02:39:26Z","closed_at":null,"body":"Thanks for this great plugin.\r\nI'm not good at English, so I can't explain well.  I wanna Japanese, if you don't mind.\r\n\r\n\r\n\r\nI can't use this plugin as I expected.I use neovim and dein plugin manager.\r\nIn nomal mode, it doesn't display the color like this.\r\n<img width=\"1280\" alt=\"2016-05-09 11 18 30\" src=\"https://cloud.githubusercontent.com/assets/11435694/15102234/e10c71bc-15d7-11e6-902a-3b8790a6387d.png\">\r\n\r\nI've wrote \r\n```\r\nexport TERM=xterm-256color\r\n```\r\nin my `.zshrc`.\r\n\r\nAnd I wrote `set laststatus=2` and \r\n```  \r\naugroup reload_vimrc\r\n       autocmd!\r\n       autocmd bufwritepost $MYVIMRC nested source $MYVIMRC\r\naugroup END\r\n```\r\nin my `~/.config/dein/plugin.toml`.    \r\n  \r\nAnd my plugin.toml file are like this↓\r\n```\r\n[[plugins]]\r\n    repo = 'itchyny/lightline.vim'\r\n    hook_add = '''\r\n        set laststatus=2\r\n        \r\n        augroup reload_vimrc\r\n            autocmd!\r\n            autocmd bufwritepost $MYVIMRC nested source $MYVIMRC\r\n        augroup END\r\n\r\n        let g:lightline = {\r\n        \\ 'colorscheme': 'wombat',\r\n        \\ 'mode_map': {'c': 'NORMAL'},\r\n        \\ 'active': {\r\n        \\   'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ] ]\r\n        \\ },\r\n        \\ 'component_function': {\r\n        \\   'modified': 'LightLineModified',\r\n        \\   'readonly': 'LightLineReadonly',\r\n        \\   'fugitive': 'LightLineFugitive',\r\n        \\   'filename': 'LightLineFilename',\r\n        \\   'fileformat': 'LightLineFileformat',\r\n        \\   'filetype': 'LightLineFiletype',\r\n        \\   'fileencoding': 'LightLineFileencoding',\r\n        \\   'mode': 'LightLineMode'\r\n        \\ } ,\r\n        \\ 'component_expand': {\r\n        \\   'syntastic': 'SyntasticStatuslineFlag'\r\n        \\ },\r\n        \\ 'component_type': {\r\n        \\   'syntastic': 'error'\r\n        \\ }\r\n        \\ }\r\n\r\n        let g:lightline.component_expand = {\r\n        \\ 'tabs': 'lightline#tabs' } \r\n        let g:lightline.component_type = {\r\n        \\ 'tabs': 'tabsel' } \r\n\r\n        let g:syntastic_mode_map = { 'mode': 'passive' }\r\n        augroup AutoSyntastic\r\n          autocmd!\r\n          autocmd BufWritePost *.c,*.cpp call s:syntastic()\r\n        augroup END\r\n        function! s:syntastic()\r\n          SyntasticCheck\r\n          call lightline#update()\r\n        endfunction\r\n\r\n        function! LightLineModified()\r\n          return &ft =~ 'help\\|vimfiler\\|gundo' ? '' : &modified ? '+' : &modifiable ? '' : '-'\r\n        endfunction\r\n        \r\n        function! LightLineReadonly()\r\n          return &ft !~? 'help\\|vimfiler\\|gundo' && &readonly ? 'x' : ''\r\n        endfunction\r\n        \r\n        function! LightLineFilename()\r\n          return ('' != LightLineReadonly() ? LightLineReadonly() . ' ' : '') .\r\n                \\ (&ft == 'vimfiler' ? vimfiler#get_status_string() :\r\n                \\  &ft == 'unite' ? unite#get_status_string() :\r\n                \\  &ft == 'vimshell' ? vimshell#get_status_string() :\r\n                \\ '' != expand('%:t') ? expand('%:t') : '[No Name]') .\r\n                \\ ('' != LightLineModified() ? ' ' . LightLineModified() : '')\r\n        endfunction\r\n        \r\n        function! LightLineFugitive()\r\n          try\r\n            if &ft !~? 'vimfiler\\|gundo' && exists('*fugitive#head')\r\n              return fugitive#head()\r\n            endif\r\n          catch\r\n          endtry\r\n          return ''\r\n        endfunction\r\n        \r\n        function! LightLineFileformat()\r\n          return winwidth(0) > 70 ? &fileformat : ''\r\n        endfunction\r\n        \r\n        function! LightLineFiletype()\r\n          return winwidth(0) > 70 ? (strlen(&filetype) ? &filetype : 'no ft') : ''\r\n        endfunction\r\n        \r\n        function! LightLineFileencoding()\r\n          return winwidth(0) > 70 ? (strlen(&fenc) ? &fenc : &enc) : ''\r\n        endfunction\r\n        \r\n        function! LightLineMode() \r\n            return winwidth(0) > 60 ? lightline#mode() : ''\r\n        endfunction\r\n    '''\r\n\r\n```\r\n\r\nI could display the lightline color when I start vim, typing `vim ~/.config`.\r\nbut I could not display the light line color  when I start vim, typing `vim` or `vim ~/.config/dein/plugin.toml`.\r\nI could display the lightline color in Insert mode, Visual mode.\r\nwhy I couldn't the color well? \r\n\r\n\r\n\r\n"}}