Access Standalone Options within config #3398
Replies: 1 comment
-
NVM it's literally working 5 seconds after. IDK why that wasn't working before lol # file_b.nix
{
diagnostic.settings = {
severity_sort = true;
float = {
border = "rounded";
source = "if_many";
};
signs = lib.mkIf config.globals.have_nerd_font {
text.vim.diagnostic.severity = {
ERROR = " ";
WARN = " ";
INFO = " ";
HINT = " ";
};
};
# ...
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm using the standalone version of nixvim. I have a question about referencing options within the config. For example, there's an option for
have_nerd_font
. I want to uselib.mkIf
based on that conditional.When I was using the home-manager module, I was able to do something like
lib.mkIf config.programs.nixvim.globals.have_nerd_font
. But now I'm not so share about with the standalone version.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions