Lightline.vim: Unable to install the 'one dark' theme

Created on 19 Jun 2020  路  6Comments  路  Source: itchyny/lightline.vim

So in my code

let g:lightline {
/ 'colorscheme':'one dark'
/ }

Its unable to find this theme but it can find other themes without a space between the two words. I am not too sure why this is happening, how do I fix this, is there another name for this?

configuration

Most helpful comment

Just use one. When &background is dark, it switches to the dark theme of one.

All 6 comments

Just use one. When &background is dark, it switches to the dark theme of one.

Thanks for that.

image

It seems to work but why does it look different on my terminal? Is it cause of the terminal's configuration that has the ability to override the colors set or something?

The screen shot is taken with GUI version (16777216 colors). We can't emulate the appearance using 256 colors.

@itchyny Ah I see, so I guess I can still edit one dark theme then?

autocmd VimEnter * call s:setLightlineColors()

function s:setupLightlineColors() abort
  let l:pallete = lightline#palette()
  let l:pallete.normal.middle = [[ something ]]
  call lightline#colorscheme()
endfunction

@itchyny THanks then.

Was this page helpful?
0 / 5 - 0 ratings