Replies: 2 comments
-
You could approach that by multiple means:
|
Beta Was this translation helpful? Give feedback.
-
IMO it's best to keep this kinda logic internal to modual eval whenever possible, so I would recomend using To expand on #2372 (comment), you can leverage several attrs:
In particular, Footnotes
|
Beta Was this translation helpful? Give feedback.
-
I'd like to set a few different global variables on different systems (scaling, some paths configured in vim.g). This might be a documentation issue but I couldn't work out how to do it.
When loading the flake, it would be nice if I could override
vim.g.foo
variables.I think we'd need to do something like
Then in a module call
nixvim.settings.g.variablename = 'x';
I had a look through the code, it does export some modules but I don't think I can easily override settings.
I'd also like to do this on a machine with a different using
nix run
but I assume that's a different challenge (or home-manager but I don't know how to import flakes into the home manager config)Beta Was this translation helpful? Give feedback.
All reactions