Is it possible to use onedarklight if the system is configured for light mode? #288
Unanswered
tristan957
asked this question in
Q&A
Replies: 2 comments 1 reply
-
This is more of a "you" option than it is the theme's as it's very opinionated. Have you tried a conditional based on the Neovim background and loading either onedark or onelight? I do this in my own dotfiles. |
Beta Was this translation helpful? Give feedback.
1 reply
-
From the README: function ToggleTheme()
if vim.o.background == "dark" then
vim.cmd("colorscheme onelight")
else
vim.cmd("colorscheme onedark")
end
end |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice to switch colorschemes if system-wide dark mode is toggled on or off.
Beta Was this translation helpful? Give feedback.
All reactions