0

I have installed the neodark.vim plug-in by Keita Nakamura following this answer.
Currently my .vimrc looks like this:\

enter image description here

But the lightline theme doesn't appear on the status bar:
enter image description here

What is wrong here and how can I fix it?

Edit: I have updated to:

:set number
:set relativenumber

call plug#begin()

Plug 'itchyny/lightline.vim' " lightline
Plug 'KeitaNakamura/neodark.vim' " vim-plug

call plug#end()

set termguicolors " recommended
colorscheme neodark

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

and did :PlugInstall

But, the issue persists.

2
  • 1
    Textual data (like the snippet of your .vimrc) is best inserted as text, e.g. between the "code fences". See the edit instructions. I would blindly guess you need to install the lightline.vim plugin before you can use it. With your newly gained knowledge on plugin managers you could figure out a way.
    – Friedrich
    Commented Mar 31, 2023 at 10:00
  • I fail to see, what this has to do with airline Commented Mar 31, 2023 at 10:59

1 Answer 1

1

You have to install lightline.

Add to your .vimrc (between call plug#begin() and call plug#end():

Plug 'itchyny/lightline.vim'

Make sure laststatus is set to 2

set laststatus=2

Restart Vim

Run :PlugInstall

Restart Vim

2
  • I did this, but nothing happened. Still not working ;(
    – Atharva
    Commented Mar 31, 2023 at 10:53
  • You have to set laststatus to 2 (I have updated the answer). Commented Mar 31, 2023 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.