0
votes

I have neovim installed and this is my init.nvim file

call plug#begin('~/.local/share/nvim/plugged')

  Plug 'tyrannicaltoucan/vim-quantum'
  Plug 'mxw/vim-jsx'
  Plug 'pangloss/vim-javascript'
  Plug 'itchyny/lightline.vim'
  Plug 'doums/darcula'

call plug#end()


colorscheme darcula

I use :source init.nvim and then :PlugInstall then everything seems ok and all plugins and themes are installed and the theme is changed too. But when I restart neovim everything is reverted to its original state like nothing has ever happened.

2

2 Answers

3
votes

Is your init.vim at the correct path?

This is the most reliable way to edit the correct file.

Open vim and execute the following command (start by typing :).

:exe "edit" stdpath("config")."/init.vim"

1
votes

I was creating the wrong file , it had to be init.vim and i was creating init.nvim Also I checked again and unbelievably there was no nvim folder in the .config folder at all . Recreated the file and problem solved.