diff options
author | Gregory Anders <greg@gpanders.com> | 2024-11-26 14:22:01 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-26 14:22:01 -0600 |
commit | d460928263d0ff53283f301dfcb85f5b6e17d2ac (patch) | |
tree | 6eb9e98b317a122e91198dd952eb28c77f8cc588 /runtime/lua/vim/fs.lua | |
parent | 99b5ffd688247f25295f3dd06e57c0d9ad85b072 (diff) | |
download | rneovim-d460928263d0ff53283f301dfcb85f5b6e17d2ac.tar.gz rneovim-d460928263d0ff53283f301dfcb85f5b6e17d2ac.tar.bz2 rneovim-d460928263d0ff53283f301dfcb85f5b6e17d2ac.zip |
feat(tui): update 'background' on theme change events (#31350)
Enabling private DEC mode 2031 tells the terminal to notify Nvim
whenever the OS theme changes (i.e. light mode to dark mode or vice
versa) or the terminal emulator's palette changes. When we receive one
of these notifications we query the terminal color's background color
again to see if it has changed and update the value of 'background' if
it has.
We only do this though if the user has not explicitly set the value of
'bg' themselves. The help text is updated slightly to hint to users that
they probably shouldn't set this value: on modern terminal emulators
Nvim is able to completely determine this automatically.
Diffstat (limited to 'runtime/lua/vim/fs.lua')
0 files changed, 0 insertions, 0 deletions