KeitaNakamura / neodark.vim

A dark color scheme for vim
409 stars 34 forks source link

Errors when attempting to use the lightline theme #9

Closed andrewhlin closed 7 years ago

andrewhlin commented 7 years ago

When I attempt to use the lightline theme by setting

let g:lightline = {}
let g:lightline.colorscheme = 'neodark'

I get the following errors:

Error detected while processing function lightline#update[3]..lightline#colorscheme[18]..lightline#highlight:
line   18:
E421: Color name or number not recognized: ctermbg=-1 term=inverse cterm=inverse gui=inverse
Error detected while processing function lightline#update:
line    3:
E171: Missing :endif
Error detected while processing function <SNR>6_StarSetf:
line    2:
E171: Missing :endif
KeitaNakamura commented 7 years ago

Hi.

The minimal vimrc is as follows:

call plug#begin('~/.vim/plugged')

Plug 'itchyny/lightline.vim'
Plug 'KeitaNakamura/neodark.vim'

call plug#end()

colorscheme neodark
set laststatus=2

let g:lightline = {}
let g:lightline.colorscheme = 'neodark'
andrewhlin commented 7 years ago

Tried it with the minimal vimrc and it worked properly. It seems the issue arises when I have let g:neodark#terminal_transparent = 1 along with the lightline colorscheme.

I'm using vim 7.4, but I tried it on vim 8.0 and it worked fine there.

KeitaNakamura commented 7 years ago

Thank you for report. I'm going to find the problem.

KeitaNakamura commented 7 years ago

I'm using neovim and it worked fine. I'm going to install vim 7.4 and check it there.

KeitaNakamura commented 7 years ago

I tried following vimrc in vim 7.4.2334, but it worked fine.

call plug#begin('~/.vim/plugged')

Plug 'itchyny/lightline.vim'
Plug 'KeitaNakamura/neodark.vim'

call plug#end()

let g:neodark#terminal_transparent = 1

colorscheme neodark
set laststatus=2

let g:lightline = {}
let g:lightline.colorscheme = 'neodark'
KeitaNakamura commented 7 years ago

I will close this issue. If you still have problem, feel free to open again.