aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/func
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2024-11-26 14:22:01 -0600
committerGitHub <noreply@github.com>2024-11-26 14:22:01 -0600
commitd460928263d0ff53283f301dfcb85f5b6e17d2ac (patch)
tree6eb9e98b317a122e91198dd952eb28c77f8cc588 /runtime/lua/vim/func
parent99b5ffd688247f25295f3dd06e57c0d9ad85b072 (diff)
downloadrneovim-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/func')
0 files changed, 0 insertions, 0 deletions