Currently, I use vim-plug for managing plugins and vim-colorschemes for my colorschemes - which doesn't work.
Approach 1:
in my init.vim:
Plug 'flazz/vim-colorschemes'
[...]
syntax on
colorscheme babymate256
set background=dark
Putting those colorscheme settings at the end of my init.vim(=after my mappings), works. Putting those before my mappings (but after filetype plugin
and that) doesn't. That doesn't make much sense to me, but as neovim supports asynchron execution, that may be the cause.
Putting set runtimepath+=~/.dotfiles/nvim/plugged/vim-colorschemes/colors
before those colorscheme settings doesn't work either.
Approach 2:
Putting all colorschemes from nvim/plugged/vim-colorschemes/colors
into nvim/colors/
doesn't change anything.
Of course, i can set my colorscheme manually after nvim has started.
- I thought of using just an if structure for setting the colorscheme, but i don't know what i could test, as the colorscheme set doesn't provide any variables.
- why does the manual configuration using nvim/color doesn't work?
- Do you have suggestions on how to manage colorschemes?
EDIT: I don't like setting it at the end of my file, as it destroys my file structure.
vim --startuptime log
to see which file sets up the colorscheme ? You can access the name of your current colorscheme through the global variableg:colors_name
and load the colorscheme manually with the following command :execute "colorscheme " . g:colors_name
colors
folder and the only one I see isbabymate256
). What's the name of your default colorscheme when you type:colo
? Another thing you could do to start investigating : type:hi
, it will display all the highlight groups currently set. Find the name of one whose colors are not the ones you want (let's say for exampleStatusLine
). Then type:verb hi StatusLine
to discover which file last set the status line highlight group.