Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading edge and its options #31

Closed
dlejay opened this issue May 16, 2021 · 2 comments
Closed

Loading edge and its options #31

dlejay opened this issue May 16, 2021 · 2 comments

Comments

@dlejay
Copy link

dlejay commented May 16, 2021

This issue is related to sainnhe/gruvbox-material#60

Unless adding packadd! edge before colorscheme edge, the colorscheme becomes officially loaded: echo g:colors_name returns edge but there is no actual colour change.

This is in the doc and I guess there is nothing to do about it.

The issue I'd like to point out is that even with packadd! edge, the options do not get loaded automatically.
I use pack to manage plugin configurations. All options get stored in a file plugin/_pack.vim.
If I want italics I have to manually add let g:edge_enable_italic = 1 in the main vimrc.
Or, I need to type colorscheme edge manually.

Is there anything one can do about this?

@sainnhe
Copy link
Owner

sainnhe commented May 16, 2021

I guess it's because the color scheme is applied before the configuration options are set.

I'm not sure how you manage your configurations, but you need to make sure the options are set before colorscheme edge.

@dlejay
Copy link
Author

dlejay commented May 18, 2021

I have got to learn more on how Vim sources files.
The .vimrc is loaded fist (that's why it's called init.vim in Neovim).

Conclusion: .vimrc is not the place to set the colorscheme.

Since the colorscheme shall be loaded after loading the package and setting options, have it set in your-vim-directory/after/plugin/settings.vim.

@dlejay dlejay closed this as completed May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants