aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/provider/python.lua
diff options
context:
space:
mode:
authorKyle <50718101+kylesower@users.noreply.github.com>2026-02-27 03:52:52 -0600
committerGitHub <noreply@github.com>2026-02-27 04:52:52 -0500
commit5cbb9d613bf6d8983b5effd7e20343a4ef497c06 (patch)
treefb599a0cab30f1260b89e175d30896951f0b67fc /runtime/lua/vim/provider/python.lua
parentf45c550f4edd49815470e84447cb4ed9dd7a80fc (diff)
downloadrneovim-5cbb9d613bf6d8983b5effd7e20343a4ef497c06.tar.gz
rneovim-5cbb9d613bf6d8983b5effd7e20343a4ef497c06.tar.bz2
rneovim-5cbb9d613bf6d8983b5effd7e20343a4ef497c06.zip
fix(startup): wait for bg detection before user config #37075
Problem: Automatic background detection sets the background option too late, which loads colorschemes twice and causes problems when the user's terminal background doesn't match the default (#32109, #36211, #36416). Solution: Use a DA1 query to determine whether the TTY supports OSC 11. Wait for background detection and setting to complete before processing user config. Note: To preserve the existing behavior as much as possible, this triggers OptionSet manually on VimEnter (since it won't trigger automatically if we set bg during startup). However, I'm unsure if this behavior is truly desired given that the documentation says OptionSet is triggered "After setting an option (except during |startup|)." Also fixes flickering issue #28667. To check for flickering: nvim --clean --cmd "set termguicolors" --cmd "echo \"foo\"" --cmd "sleep 10" On master, this gives me a black screen for 10 seconds, but on this branch, the background is dark or light depending on the terminal background (since the option is now set during startup rather than after VimEnter).
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions