Update generated neovim config
This commit is contained in:
@ -173,18 +173,20 @@ Parameters ~
|
||||
Set up terminal background synchronization
|
||||
|
||||
What it does:
|
||||
- Checks if terminal emulator supports OSC 11 control sequence. Stops if not.
|
||||
- Creates |UIEnter| and |ColorScheme| autocommands which change terminal
|
||||
background to have same color as |guibg| of |hl-Normal|.
|
||||
- Creates |UILeave| autocommand which sets terminal background back to the
|
||||
color at the time this function was called first time in current session.
|
||||
- Checks if terminal emulator supports OSC 11 control sequence through
|
||||
appropriate `stdout`. Stops if not.
|
||||
- Creates autocommands for |ColorScheme| and |VimResume| events, which
|
||||
change terminal background to have same color as |guibg| of |hl-Normal|.
|
||||
- Creates autocommands for |VimLeavePre| and |VimSuspend| events which set
|
||||
terminal background back to the color at the time this function was
|
||||
called first time in current session.
|
||||
- Synchronizes background immediately to allow not depend on loading order.
|
||||
|
||||
Primary use case is to remove possible "frame" around current Neovim instance
|
||||
which appears if Neovim's |hl-Normal| background color differs from what is
|
||||
used by terminal emulator itself.
|
||||
|
||||
Make sure to call it only during interactive session in terminal emulator.
|
||||
Works only on Neovim>=0.10.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*MiniMisc.setup_restore_cursor()*
|
||||
|
||||
Reference in New Issue
Block a user