Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lightline in normal mode doesn't show colors. #501

Closed
1aryanpro opened this issue Aug 28, 2020 · 3 comments
Closed

Lightline in normal mode doesn't show colors. #501

1aryanpro opened this issue Aug 28, 2020 · 3 comments

Comments

@1aryanpro
Copy link

.zshrc:

export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
export TERM=xterm-256color
PROMPT="%F{6}%B%2~%b%f $ "

.vimrc:

set nocompatible
filetype off
set number
syntax on
set tabstop=4
set shiftwidth=4
set backspace=indent,eol,start

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'

Plugin 'preservim/nerdtree'
let NERDTreeAutoDeleteBuffer = 1
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif

Plugin 'joshdick/onedark.vim'
autocmd VimEnter * :colorscheme onedark

Plugin 'itchyny/lightline.vim'
let g:lightline = {'colorscheme': 'wombat'}
if !has('gui_running')
  set t_Co=256
endif
set noshowmode
set laststatus=2

" Plugin 'ycm-core/YouCompleteMe'
Plugin 'SirVer/ultisnips'
let g:UltiSnipsSnippetDirectories=["mycoolsnippets"]

" Snippets are separated from the engine. Add this if you want them:
Plugin 'epilande/vim-react-snippets'

" Trigger configuration.
let g:UltiSnipsExpandTrigger="<C-l>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"

" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

Here is an image of the colors working in insert mode but not in normal mode.
Screen Shot 2020-08-27 at 11 51 33 PM
Screen Shot 2020-08-27 at 11 51 16 PM

@itchyny
Copy link
Owner

itchyny commented Aug 28, 2020

autocmd VimEnter * :colorscheme onedark

This configuration clears the lightline colors. Deleting this line and adding colorscheme onedark at the end of the vimrc fix the issue.

@1aryanpro
Copy link
Author

Thank you! It worked.

@1aryanpro 1aryanpro reopened this Aug 28, 2020
@itchyny itchyny closed this as completed Aug 28, 2020
@1aryanpro
Copy link
Author

I switched it to the onedark color scheme and it's doing the same issue again.
my new .vimrc

set nocompatible              " be iMproved, required
filetype off                  " required
set number
syntax on
set tabstop=4
set shiftwidth=4
set backspace=indent,eol,start

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'

Plugin 'preservim/nerdtree'
let NERDTreeAutoDeleteBuffer = 1
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif

Plugin 'joshdick/onedark.vim'

Plugin 'itchyny/lightline.vim'
let g:lightline = {'colorscheme': 'onedark'}
if !has('gui_running')
  set t_Co=256
endif
set noshowmode
set laststatus=2

" Plugin 'ycm-core/YouCompleteMe'
Plugin 'SirVer/ultisnips'
let g:UltiSnipsSnippetDirectories=["mycoolsnippets"]

" Snippets are separated from the engine. Add this if you want them:
Plugin 'epilande/vim-react-snippets'

" Trigger configuration.
let g:UltiSnipsExpandTrigger="<C-l>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"

" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

" Put your non-Plugin stuff after this line

autocmd VimEnter * :colorscheme onedark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants