-
|
Has anyone figured out how to make the In my case, I am on macOS 15.2, I am using "catppuccin" as my |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
The "easiest" way would be to do this via home-manager's specializations. Alternatively, using raw lua, you can try to update Neovim's color scheme on generation switch by updating the colorscheme table. |
Beta Was this translation helpful? Give feedback.
-
|
hello, really late but who knows, it might help someone. I spent my evening trying to achieve something like that, my first idea was to follow the terminal colors, like vim, but for some reason i could not achieve that (maybe skill issue, if not i would be great to have this possibility at some point ^^) after spending far too much time on weird error and stupid ideas I managed to have something working : i use the -c argument when starting nvim. I wrapped it up in a fish function (the same is probably possible in bash or zsh, or just alias) : programs.fish.functions = {
"nvim" = {
argumentNames = [ "argv" ];
body = ''
if test $THEME = "light"
command nvim -c "colorscheme tokyonight-day" $argv
else
# the default is dark, so no need for special command here
command nvim $argv
end
'';
};
};and it seems to work well for now (my goal was to be able to change it without having to rebuild each time, as someone who change themes a lot it gets quicky annoying, especially when each minor change takes 30 seconds to evaluate 🤷) edit : now I feel jaded, seeing how simple this solution finally was 😓 edit 2 : it is mentioned in the FAQ that you can still keep part of your config as lua in .config/nvim, would colors set there be taken into account at rebuild time or at launch time ? this could be the simple solution, to use more customized themes etc |
Beta Was this translation helpful? Give feedback.
The "easiest" way would be to do this via home-manager's specializations. Alternatively, using raw lua, you can try to update Neovim's color scheme on generation switch by updating the colorscheme table.