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

Set colorscheme after setting lua globals #46

Closed
Alexnortung opened this issue Oct 10, 2022 · 1 comment
Closed

Set colorscheme after setting lua globals #46

Alexnortung opened this issue Oct 10, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Alexnortung
Copy link
Contributor

Alexnortung commented Oct 10, 2022

Plugin affected: most colorschemes (specifically nord)
Nixpkgs channel: 22.05
Home-manager version: 22.05

Description

Before the large refactor, the nord color scheme worked fine. But now variables set has no effect.
For example setting borders and contrast on the nord colorscheme does nothing when neovim is started. since the colorscheme command is called before the globals has been set.

A fix was already made for this in #23 (https://github.com/pta2002/nixvim/pull/23/files#diff-224c83bb3598476e7aaabf84b7de2b5932e06057286163935b93f8db58e1a3acR211-R216)

It should be noted that the variables are set, since using the command :colorscheme nord after neovim starts will display the colorscheme with the variables defined in the config.

Config

{
...
    colorschemes.nord = {
      enable = true;
      borders = true;
      contrast = true;
    };
...
}
@Alexnortung Alexnortung added the bug Something isn't working label Oct 10, 2022
@pta2002
Copy link
Collaborator

pta2002 commented Oct 17, 2022

Should be fixed!

@pta2002 pta2002 closed this as completed Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants